dbTalk Databases Forums  

Help on referencing a query

comp.databases.ms-access comp.databases.ms-access


Discuss Help on referencing a query in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
doncee
 
Posts: n/a

Default Help on referencing a query - 03-22-2010 , 07:38 AM






I think have been able to do this in the past but am unable to at
present time. Have a form bound to a table. Have a combo box on the
form bound to a query. After selecting the item from the combo box
would like to be able to display some of the other fields from query in
text boxes on the original form that would be related to the record
selected from the query. When try to do this by using expression in the
text box control source referring to the query I get the famous #name?
error.
If someone could point me in the direction I need to go to solve
this would be greatly appreciated. My google searches have not been
much help at all. If need more info please advise.
Thanx
dc

Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: Help on referencing a query - 03-22-2010 , 08:39 AM






On Mon, 22 Mar 2010 08:38:45 -0500, doncee
<nopsamdbc9814 (AT) nospamswbell (DOT) wanted> wrote:

Your combobox would have several (perhaps hidden) columns. The
ControlSource of those textboxes would be:
=myCombobox.Column(i)
(of course you replace myObjectNames with yours)

-Tom.
Microsoft Access MVP



Quote:
I think have been able to do this in the past but am unable to at
present time. Have a form bound to a table. Have a combo box on the
form bound to a query. After selecting the item from the combo box
would like to be able to display some of the other fields from query in
text boxes on the original form that would be related to the record
selected from the query. When try to do this by using expression in the
text box control source referring to the query I get the famous #name?
error.
If someone could point me in the direction I need to go to solve
this would be greatly appreciated. My google searches have not been
much help at all. If need more info please advise.
Thanx
dc

Reply With Quote
  #3  
Old   
doncee
 
Posts: n/a

Default Re: Help on referencing a query - 03-22-2010 , 09:21 AM



Tom van Stiphout <tom7744.no.spam (AT) cox (DOT) net> wrote in
news:q20fq5tcigh6u29o61srgknlb0pen8ei2c (AT) 4ax (DOT) com:

Quote:
On Mon, 22 Mar 2010 08:38:45 -0500, doncee
nopsamdbc9814 (AT) nospamswbell (DOT) wanted> wrote:

Your combobox would have several (perhaps hidden) columns. The
ControlSource of those textboxes would be:
=myCombobox.Column(i)
(of course you replace myObjectNames with yours)

-Tom.
Microsoft Access MVP



I think have been able to do this in the past but am unable to at
present time. Have a form bound to a table. Have a combo box on the
form bound to a query. After selecting the item from the combo box
would like to be able to display some of the other fields from query
in
text boxes on the original form that would be related to the record
selected from the query. When try to do this by using expression in
the
text box control source referring to the query I get the famous
#name?
error.
If someone could point me in the direction I need to go to solve
this would be greatly appreciated. My google searches have not been
much help at all. If need more info please advise.
Thanx
dc

Thank you.....thank you.......thank you again and again.
dc

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.