After getting lots of help from this forum, I have finally found a problem I couldn't find a solution too by searching for it on Google. Thus this post.
I have a multiple item form with a single button control e.g.:
rec1> [button_1] [ref_num_tb] [data_tb]...
rec2> [button_2] [ref_num_tb] [data_tb]...
rec3> [button_3] [ref_num_tb] [data_tb]...
This button was intended to only interact with the record it is paired with, but lo and behold every button only interacts with the first record, e.g. pressing the button on rec3 (button_3) triggers the query with the data inputs from rec1.
At this juncture,
only contains the value of the first record. Is there a way to make the button interact with the record it is listed with?
Thanks for the help!
V9
I have a multiple item form with a single button control e.g.:
rec1> [button_1] [ref_num_tb] [data_tb]...
rec2> [button_2] [ref_num_tb] [data_tb]...
rec3> [button_3] [ref_num_tb] [data_tb]...
This button was intended to only interact with the record it is paired with, but lo and behold every button only interacts with the first record, e.g. pressing the button on rec3 (button_3) triggers the query with the data inputs from rec1.
Code:
sqlCmd = sqlCmd & "SELECT "
...
sqlCmd = sqlCmd & "Contact_Customer_Name "
sqlCmd = sqlCmd & "FROM tmp_search_" & rndInt
sqlCmd = sqlCmd & " WHERE tmp_search_" & rndInt & ".Reference_Number = " & Reference_Number_tb.Value
At this juncture,
Code:
Reference_Number_tb.Value
Thanks for the help!
V9