B
Bill
Hi,
I am trying to write the code to request input from the
user and then open a form to the correct record for
editing.
The table tied to the form is Startup and the field in
that table that is being used for comparison with the
user input is "Study Number" This field is designated as
a number. The field in the form that contains the user
input is txtUpdate1. This unbound text box is designated
as a general number. I have the code below on the
OnClick event of a command button on the form:
DoCmd.OpenForm "frmStudyData", acNormal, , "[Study
Number] = " & Forms!frmUpdate1!txtUpdate1 & ""
While it does open the form without an error, it does not
open to the correct record.
Any help would be greatly appreciated
Thanks
I am trying to write the code to request input from the
user and then open a form to the correct record for
editing.
The table tied to the form is Startup and the field in
that table that is being used for comparison with the
user input is "Study Number" This field is designated as
a number. The field in the form that contains the user
input is txtUpdate1. This unbound text box is designated
as a general number. I have the code below on the
OnClick event of a command button on the form:
DoCmd.OpenForm "frmStudyData", acNormal, , "[Study
Number] = " & Forms!frmUpdate1!txtUpdate1 & ""
While it does open the form without an error, it does not
open to the correct record.
Any help would be greatly appreciated
Thanks