Hi,
may anyone help me?
there is two masks and two tables.
I want to click on a buttom in mask2 and run the following code:
Dim query1 As String
Dim query2 As String
Dim objDB As Database
Set objDB = CurrentDb
query1 = "SELECT mask1.field1, mask1.field2 FROM mask1" _
& "WHERE mask2.field3=mask1.field3";
query2 = "insert into mask2.field1,mask2.field2" _
& "values (' mask1.field1 ',' mask1.field2 ')"
objDB.Execute query1
objDB.Execute query2
Can anyone correct it?
Thank you so much
may anyone help me?
there is two masks and two tables.
I want to click on a buttom in mask2 and run the following code:
Dim query1 As String
Dim query2 As String
Dim objDB As Database
Set objDB = CurrentDb
query1 = "SELECT mask1.field1, mask1.field2 FROM mask1" _
& "WHERE mask2.field3=mask1.field3";
query2 = "insert into mask2.field1,mask2.field2" _
& "values (' mask1.field1 ',' mask1.field2 ')"
objDB.Execute query1
objDB.Execute query2
Can anyone correct it?
Thank you so much