wailingrecluse
Registered User.
- Local time
- Today, 22:43
- Joined
- Feb 10, 2009
- Messages
- 50
Guys,
I'm having trouble with some code.
Pretty simple, the form should close, a form with a loading progress bar should appear while the queries run. This form should then close and the original form should re-open with refreshed data.
But, when it gets to line
I receive the error
Seems that something is holding on to the table, but I can't figure out what.
If I comment that line out, it runs great, doing everything else, but obviously I need that line to actually refresh the data.
Thanks,
Richard
I'm having trouble with some code.
Code:
DoCmd.SetWarnings False
DoCmd.Close acForm, "TblTotalPorts", acSaveNo
DoCmd.OpenForm "frmReload"
DoCmd.OpenQuery "QMakeDump", acNormal, acEdit
DoCmd.OpenQuery "QPorts", acNormal, acEdit
DoCmd.OpenQuery "QPortCount", acNormal, acEdit
DoCmd.OpenForm "TblTotalPorts"
Pretty simple, the form should close, a form with a loading progress bar should appear while the queries run. This form should then close and the original form should re-open with refreshed data.
But, when it gets to line
Code:
DoCmd.OpenQuery "QPortCount", acNormal, acEdit
Runtime error 3211. The database engine could not lock table 'TblTotalPorts' because it is already in use by another person or process.
Seems that something is holding on to the table, but I can't figure out what.
If I comment that line out, it runs great, doing everything else, but obviously I need that line to actually refresh the data.
Thanks,
Richard