16d45 Controls and Update Tables
Sign Up |  Live StatsLive Stats    Articles 37,467| Comments 178,606| Members 19,494, Newest Kartarsingh| Online 414
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Controls and Update Tables

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Update 2 tables with one field? jlan Information Technology 3 28-Jul-2006 08:42 AM
Use Autoexec to update linked tables. Access Dummy Information Technology 2 28-Jul-2006 08:10 AM
Acc2003 converts linked tables to local tables (2k -> 97) JRS Information Technology 1 28-Jul-2006 08:00 AM
identifying controls William Information Technology 1 17-Nov-2005 18:02 PM
Update multiple tables - problem GeraldM Information Technology 0 12-Nov-2005 22:40 PM


Tags
controls, update, tables
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:11 AM
KeffinJ's Avatar KeffinJ
Guest
 
Posts: n/a
   
   
Controls and Update Tables

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi all,

I am trying to create an interactive report but I need a little help. I
have a form with a drop down menu. I select an item from the menu and hit a
button (linked to a Macro) which then takes my selection, relates that
selection to apply to a different table (through the macro) and then outputs
this info to the report.

The problem is, I want to do this with 2 menus, i.e. I select from menu 1
and menu 2 and it produces a) that output side by side onto the report and b)
totals that output.

A little more info about how I currently have this working:

The form record source is an empty table with one field ('selection' is the
name of the table and the field). The drop down (combo box) control source
is also 'selection'). The row source for the combo box is a another table
in my database containing 3 names. So, when I select a name from the combo
box, it is then dumped into 'selection' (so now this table is no longer
empty).

I have a macro linked to a button. So, after I have made my selection from
the combo box I hit the button. The macro is used to open a report. My
macro contains a Where Condition:

[County]=[Forms]![FormDropdown]![selection]

County is the name of a field in a table that the report draws info from.
FormDropdown is the name of my simple combobox form, and selection is
explained above.

So, my report uses a different table to source data but the fields that are
found in my simple drop down menu (sourced from a table with 3 fields) are
also found in this different table. There is a filter on the report which
reads the same as the Where Condition shown above.

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10270-controls-and-update-tables.html
That seems to work fine! But adding another combobox is driving me mad.

I am sorry that this is such a long post, especially for my first one, but I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270
just wanted to arm you with as much info as possible.

Can anyone help?

Kindest regards

Kevin




Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:11 AM
KeffinJ's Avatar KeffinJ
Guest
 
Posts: n/a
   
   
RE: Controls and Update Tables



"KeffinJ" wrote:

> Hi all,
>
> I am trying to create an interactive report but I need a little help. I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270
> have a form with a drop down menu.


Sorry, just wanted to clarify, when I say 'menu' I mean 'combo box'.
Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:11 AM
Larry Daugherty's Avatar Larry Daugherty
Guest
 
Posts: n/a
   
   
Re: Controls and Update Tables

Some guidance, maybe.

First, you don't need a table to store your "selection", the first
combobox is doing that nicely. Just use an unbound form. The
comboboxes will each have their own query. Apply the same thinking
you used in the query for your report in the query for the second
combobox. You can open the report with a where condition from the
AfterUpdate event of the 2nd combobox.

When someone using Access says they're using macros, I wince in pain.
Don't DO that! What's called a macro in the rest of the MS Office
platforms is really VBA code. Referring to that code in the Access
world, it's called VBA.

You might need an Autoexec macro to cause something to absolutely,
positively happen at application initiation. Don't use the Access
macro paradigm to create executable code. Use VBA procedures instead:
Subs and Functions. The macros eventually become more difficult to
use and they're impossible to troubleshoot without interactively
re-writing the macro. Using procedures you can cause your code to
Halt on Error or at one or many breakpoints. From a halt you can
execute a single statement at a time and check every variable's value
to understand why a particular code path executes, etc.

One more word to the wise: take the terminology seriously and use it
properly.

HTH
--
-Larry-
--

"KeffinJ" wrote in message
news:956F7C32-CCF0-481E-B42A-B957DE9E53CE@microsoft.com...
> Hi all,
>
> I am trying to create an interactive report but I need a little

help. I
> have a form with a drop down menu. I select an item from the menu

and hit a
> button (linked to a Macro) which then takes my selection, relates

that
> selection to apply to a different table (through the macro) and then

outputs
> this info to the report.
>
> The problem is, I want to do this with 2 menus, i.e. I select from

menu 1
> and menu 2 and it produces a) that output side by side onto the

report and b)
> totals that output.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270
>
> A little more info about how I currently have this working:
>
> The form record source is an empty table with one field ('selection'

is the
> name of the table and the field). The drop down (combo box) control

source
> is also 'selection'). The row source for the combo box is a

another table
> in my database containing 3 names. So, when I select a name from

the combo
> box, it is then dumped into 'selection' (so now this table is no

longer
> empty).
>
> I have a macro linked to a button. So, after I have made my

selection from
> the combo box I hit the button. The macro is used to open a report.

My
> macro contains a Where Condition:
>
> [County]=[Forms]![FormDropdown]![selection]
>
> County is the name of a field in a table that the report draws info

from.
> FormDropdown is the name of my simple combobox form, and selection

is
> explained above.
>
> So, my report uses a different table to source data but the fields

that are
> found in my simple drop down menu (sourced from a table with 3

fields) are
> also found in this different table. There is a filter on the report

which
> reads the same as the Where Condition shown above.
>
> That seems to work fine! But adding another combobox is driving me

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270
mad.
>
> I am sorry that this is such a long post, especially for my first

one, but I
> just wanted to arm you with as much info as possible.
>
> Can anyone help?
>
> Kindest regards
>
> Kevin



Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:11 AM
KeffinJ's Avatar KeffinJ
Guest
 
Posts: n/a
   
   
Re: Controls and Update Tables


Thank you, Larry, I will try this approach shortly.

Apologies for my poor terminology - my exposure to the world of Access has
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270
been through books only...no real people...and yes, I do take this very
seriously indeed.

It looks like Access can do one function many different ways, which is
confusing to me, but your suggested way seems to be very logical. I'll let
you know how it goes.

Once again, thank you.
Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:12 AM
KeffinJ's Avatar KeffinJ
Guest
 
Posts: n/a
   
   
Re: Controls and Update Tables

  Donate Today!  
I've tried and tried and I seem to be at a complete loss - it looks like I am
missing something crucial here...a step that I am not aware of.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10270

I think I'll start a new post (a much simpler one!) to better verbalize the
issue.

Thanks again.
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Edward Snowden: the...
Today 03:34 AM
3 Replies, 92 Views
Difference in Bowing...
Today 03:31 AM
10 Replies, 209 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:23 AM
407 Replies, 9,372 Views
What Really Happened on...
Today 02:00 AM
8 Replies, 114 Views
English Sri Guru Granth...
Yesterday 20:24 PM
4 Replies, 123 Views
Free Online Gurbani...
Yesterday 18:34 PM
12 Replies, 4,291 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 17:57 PM
255 Replies, 6,007 Views
What Is Difference...
Yesterday 09:18 AM
6 Replies, 172 Views
First There is Water by...
By Ishna
Yesterday 05:03 AM
3 Replies, 188 Views
Cooking Without Alcohol
Yesterday 02:12 AM
12 Replies, 187 Views
Learning from Baba...
Yesterday 01:38 AM
0 Replies, 309 Views
Eckhart Tolle
17-Jun-2013 18:08 PM
2 Replies, 117 Views
Thought of the Moment!
17-Jun-2013 16:35 PM
115 Replies, 6,075 Views
New Quantum Dot...
17-Jun-2013 09:38 AM
0 Replies, 61 Views
Girl, 5, Collects...
17-Jun-2013 06:48 AM
0 Replies, 86 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 03:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.85474 seconds with 32 queries
0