Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert ComboBox Select Statement to TextBox Select Statement

Status
Not open for further replies.

jjepsen

Technical User
Jan 30, 2002
5
US
I am having problems with list boxes not updating records so I want to try using a textbox instead. Here is the select statement I am using in the list box, any idea on how to write this so it iwll work iwht a text box?

SELECT [Part_Lookup].[NSN], [forms].[main].[part number] FROM Part_Lookup WHERE ((([forms].[main].[part number])=[Part_Lookup].[part number]));
 
Replace your periods with bangs(!):

Forms!FormName!FieldName

mac
 
Even after incorporating mac318's advice, there's nothing in your code that's going to update any records. All you're doing is selecting a particular group of records--not updating anything.
 
raskew is right on. You need to use an Update Query. Thanks raskew. I missed the select statement completely.

mac
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top