coolcatkelso
Registered User.
- Local time
- Today, 18:41
- Joined
- Jan 5, 2009
- Messages
- 279
Hiya guys
I'm trying to rename a few things using code -
The error I get is tblDateFlagged is locked by a user or procedure
As far as I can see the table is closed.. There are no other users apart from me using this, so it can only leave a procedure / module.. I tried the following code
DoCmd.Close acModule, "basValidate"
DoCmd.Close acModule, "basRunFirst"
To attempt to close the modules but it doesn't do anything... Any ideas plz?
________
Lesbian Movie
I'm trying to rename a few things using code -
Code:
DoCmd.Close acModule, "basValidate"
DoCmd.Close acModule, "basRunFirst"
DoCmd.SetWarnings False
DoCmd.Rename "OldAutoExec", acMacro, "AutoExec"
DoCmd.Rename "OldtblDateFlagged", acTable, "tblDateFlagged"
DoCmd.Rename "OldtblLicense", acTable, "tblLicense"
DoCmd.Rename "tblLicense", acTable, "TEMPtblLicense"
DoCmd.Rename "AutoExec", acMacro, "TEMPAutoExec"
DoCmd.SetWarnings True
DoCmd.OpenForm "frmValidate"
DoCmd.Close A_FORM, "frmValidate"
The error I get is tblDateFlagged is locked by a user or procedure
As far as I can see the table is closed.. There are no other users apart from me using this, so it can only leave a procedure / module.. I tried the following code
DoCmd.Close acModule, "basValidate"
DoCmd.Close acModule, "basRunFirst"
To attempt to close the modules but it doesn't do anything... Any ideas plz?
________
Lesbian Movie
Last edited: