G
Guest
I am trying to add some code to a button placed in a form, but I'm new to
visual basic programming in Access, and am having troubles with syntax.
Perhaps someone could drop me a snippet of code to get me started??
What I'm trying to do is:
1) when button is pushed, code reads in 3 variables from combo boxes in form
2) using these three variables, read row by row (record by record) through a
4 column (field) table, and select the unique record there the values in the
last 3 columns match the 3 variables
3) retrieve the value of the first column (the record number/primary key)
that identifies the unique row (record)
The ultimate goal is to use this record number to sort data in a subform
that I have ready, but not yet moved into the main form.
regards,
slowuptake
visual basic programming in Access, and am having troubles with syntax.
Perhaps someone could drop me a snippet of code to get me started??
What I'm trying to do is:
1) when button is pushed, code reads in 3 variables from combo boxes in form
2) using these three variables, read row by row (record by record) through a
4 column (field) table, and select the unique record there the values in the
last 3 columns match the 3 variables
3) retrieve the value of the first column (the record number/primary key)
that identifies the unique row (record)
The ultimate goal is to use this record number to sort data in a subform
that I have ready, but not yet moved into the main form.
regards,
slowuptake