I have a text box on a form called
txtNID.
I want to use the value entered into this text box as a column in my query such that it would have the same effect as entering
NID: "1"
I tried using
NID: [Forms]![frmAddCorrespondence]![txtNID]
But it doesn't work. The query contains one column called CustID and I want a second column to contain the value of the txtNID textbox.
I also tried setting a function to define a variable for the column but my VB is so bad I just keep going around in circles! Here's what I did:
Public Function FrmNID()
varNID = Me.txtNID.Value
End Function
Then set the query field as =FrmNID() but it didn't work!
Could really do with some pointers! Thanks, Rob