K
kary via AccessMonster.com
Hi
I have assigned a variable called StPracLock as follows:
StPracLock = "Forms!Results1.Mod" & stMod & "Ass" & StAssNo & "Prac.Locked =
False"
Now I want to run the command by typing in the variable name but, ofcourse,
it doesn't work! (Comes up with "COmpile Error, Sub,Function,Procedure
expected) Can anyone help me. I have a number of fields to lock/unlock
depending on the Module (stMod) and Assignment (StAssNo) selected.
Thank you
Kary
I have assigned a variable called StPracLock as follows:
StPracLock = "Forms!Results1.Mod" & stMod & "Ass" & StAssNo & "Prac.Locked =
False"
Now I want to run the command by typing in the variable name but, ofcourse,
it doesn't work! (Comes up with "COmpile Error, Sub,Function,Procedure
expected) Can anyone help me. I have a number of fields to lock/unlock
depending on the Module (stMod) and Assignment (StAssNo) selected.
Thank you
Kary