Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Queries > Query for use i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 41182 of 43104
Post > Topic >>

Query for use in combobox

by benjaminkmartin@[EMAIL PROTECTED] Aug 5, 2008 at 11:57 AM

I used the following instructions from a web page online.


     To filter records in a combo/listbox based on the value selected
in another combo/listbox,  you can use a stored query which uses the
first control's value as a parameter. For example,

Select PeopleID, PeopleName from tblPeople Where PeopleID = Forms!
FormName!NameOfFirstControl;

Then all you need to do is issue a Requery on the second combo/listbox
in this first control's AfterUpdate event.

Private Sub NameOfFirstControl_AfterUpdate()
    Me!NameOfSecondControl.Requery
End Sub


However, when I try to enter the parameter (Location Name and Location
Code from Location ID Where Vehicle ID = Forms!Location ID and
Component ID Generator!Vehicle ID) in the query, it gives me the error
message, "Invalid bracketing of name"...  what am I doing wrong?

I'm really stuck here, so any help would be GREATLY appreciated.
Thanks
 




 1 Posts in Topic:
Query for use in combobox
benjaminkmartin@[EMAIL PR  2008-08-05 11:57:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 20:07:49 CST 2008.