C
CWH via AccessMonster.com
Hi;
I have a number of table transfers (import & export) I want to occur via code
when the fields in a master table are set specifically as such; (To execute
this I am using a command button on a form).
If Field Name “Number†=1 (data type = number) and a checkbox is set to yes
or -1 then
DoCmd.TransferDatabase export, Table1 etc…
If Field Name “Number†=2 and a checkbox is set to yes then
DoCmd.TransferDatabase export, Table2 etc…
And so forth…
This is what I have for code– but of course it doesn’t work
If [tbl_update]![Number] = 1 And [tbl_update]![Check] = -1 Then
DoCmd.TransferDatabase export, acTable, "TableName", "TableName"
Else
End if
Exit Sub
I have a number of table transfers (import & export) I want to occur via code
when the fields in a master table are set specifically as such; (To execute
this I am using a command button on a form).
If Field Name “Number†=1 (data type = number) and a checkbox is set to yes
or -1 then
DoCmd.TransferDatabase export, Table1 etc…
If Field Name “Number†=2 and a checkbox is set to yes then
DoCmd.TransferDatabase export, Table2 etc…
And so forth…
This is what I have for code– but of course it doesn’t work
If [tbl_update]![Number] = 1 And [tbl_update]![Check] = -1 Then
DoCmd.TransferDatabase export, acTable, "TableName", "TableName"
Else
End if
Exit Sub