J
JamesThurber
Guest
I have a database with 2 tables.
Parts
OrigPartNum(Primary Key)
Comments
XRefParts
OrigPartNum
PartNum
Comments
I have a query that searches both the Parts and XRefParts tables looking for matching string information that is inputted at runtime. The query looks in the Parts.OrigPartNum field as well as the XRefParts.PartNum fields for the information. My query works great and returns the information that I need. My problem is this:
I have a form based on the Parts table. I have a button on the form that runs an applyfilter macro based on my query. When I click on the button I get my runtime prompt for a value and then I get a prompt for the XrefParts.PartNum value. The only thing that I can think of is that it doesn't find the value because it is not part of the underlying form's table. The tables are linked in the query and I have also linked them in the Relationships view. I can not figure this one out. The mdb file is attached as a zip file to this post. Any help would be appreciated. Thank you.
James Thurber
Parts
OrigPartNum(Primary Key)
Comments
XRefParts
OrigPartNum
PartNum
Comments
I have a query that searches both the Parts and XRefParts tables looking for matching string information that is inputted at runtime. The query looks in the Parts.OrigPartNum field as well as the XRefParts.PartNum fields for the information. My query works great and returns the information that I need. My problem is this:
I have a form based on the Parts table. I have a button on the form that runs an applyfilter macro based on my query. When I click on the button I get my runtime prompt for a value and then I get a prompt for the XrefParts.PartNum value. The only thing that I can think of is that it doesn't find the value because it is not part of the underlying form's table. The tables are linked in the query and I have also linked them in the Relationships view. I can not figure this one out. The mdb file is attached as a zip file to this post. Any help would be appreciated. Thank you.
James Thurber