K
ket_shah
How to retrieve data on the form which has fields from two differen
tables.
Table1
------
code1
code2
code3
Table2
------
code1
test2
test3
column code1 is available between both the tables.
A form has a find button , text box and a tab control with 2 pages.
page 1 has
code2
test2
page 2 has
code3
test3
Enter value (code1) in text box and click on the find button
Want to get data on both the pages of tab control
I was able to get data from one table.
mstrSQL = "SELECT * FROM Table1 Where code1 = " text box "
.RecordSource = mstrSQL
How can I do that ? Any help is appreciated.
Thanks in advance
tables.
Table1
------
code1
code2
code3
Table2
------
code1
test2
test3
column code1 is available between both the tables.
A form has a find button , text box and a tab control with 2 pages.
page 1 has
code2
test2
page 2 has
code3
test3
Enter value (code1) in text box and click on the find button
Want to get data on both the pages of tab control
I was able to get data from one table.
mstrSQL = "SELECT * FROM Table1 Where code1 = " text box "
.RecordSource = mstrSQL
How can I do that ? Any help is appreciated.
Thanks in advance