I have a simple update query that is not running. it updates a field to the value of a text box so in the 'update to' box I have [forms]![frmName]![txtName]
is this syntax wrong!?
none, it just seems to stop during run time, status bar stops moving. have used msgbox to see if jhko![jhg] works and the msgbox comes up with just what i typed in for prompt instead of value for some reason its not picking up the text box value
If you designed your query with the qbe grid, go back to design view and change your query type to a select query - Then see if you get any records. Note that your form will need to be open to get the textbox value, or else you will be prompted for a parameter.
To be sure you are actually referencing a form, use the expression builder to select the textbox on the appropriate form.
Format wise, =[forms]![formname]![txtboxname] should be fine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.