I am doing these queries based on the value txttapetype
if txttapetype is DTR it will perform these. I tried replacing DTR in the query names with the variable but it didn't recognize it. do i have to annotate it somehow so it knows its a variable. This way i can use one set to run them all.
'DTR
Case Is = "DTR"
DoCmd.OpenQuery "LB Make txttapetype table", acViewNormal, acEdit
DoCmd.OpenQuery "LB Append txttapetype to txttapetype master #", acViewNormal, acEdit
DoCmd.OpenQuery "LB update txttapetype # part 1", acViewNormal, acEdit
DoCmd.OpenQuery "LB update txttapetype # part 2", acViewNormal, acEdit
DoCmd.OpenQuery "LB last Update txttapetype ID to txttapetype Master", acViewNormal, acEdit
MsgBox txttapetype
Thanks
Lewie
if txttapetype is DTR it will perform these. I tried replacing DTR in the query names with the variable but it didn't recognize it. do i have to annotate it somehow so it knows its a variable. This way i can use one set to run them all.
'DTR
Case Is = "DTR"
DoCmd.OpenQuery "LB Make txttapetype table", acViewNormal, acEdit
DoCmd.OpenQuery "LB Append txttapetype to txttapetype master #", acViewNormal, acEdit
DoCmd.OpenQuery "LB update txttapetype # part 1", acViewNormal, acEdit
DoCmd.OpenQuery "LB update txttapetype # part 2", acViewNormal, acEdit
DoCmd.OpenQuery "LB last Update txttapetype ID to txttapetype Master", acViewNormal, acEdit
MsgBox txttapetype
Thanks
Lewie