S
S Jackson
Not sure where to post this problem, but I'll give it a whirl:
I am trying to develop an application that will be used by less than 100
people.
I have the following tables:
-tblCaseInfo
-tblSurveyors
-tblCaseSurveyors
-tblCaseWitnesses
-tblWitnessCmbo
The relationships are as follows:
tblSurveyors - one to many tblCaseSurveyors - many to one tblCaseInfo
tblCaseInfo - one to many - tblCaseWitnesses
I have a macro called mcrWitnesses that runs a Make Table Query that
collects all the tblCaseSurveyors and makes the table called tblWitnessCmbo,
then the macro runs an append query that adds the tblCaseWitnesses to the
tblWitnessCmbo.
On a form I have coded a command button that runs the mcrWitnesses and opens
a report. The problem is if one user is viewing a report and another user
clicks the command button on the form, the 2nd user gets an macro error
because the first thing the macro does is deletes the table:
tblWitnessCmbo, before running the Make Table query.
Is there another way I could have done this? Or should I let it go as this
application will be used by less than 100 people and the likelihood of two
people accessing this at the exact same time is not that great? Or is there
some what to add VBA code to my command button that gives the user a message
if the tblWitnessCmbo cannot be deleted because it is in use by another user
and that they must wait and try again later? It took me ages to figure out
what I have now. I am overwhelmed at the thought of beginning again.
TIA
S.Jackson
I am trying to develop an application that will be used by less than 100
people.
I have the following tables:
-tblCaseInfo
-tblSurveyors
-tblCaseSurveyors
-tblCaseWitnesses
-tblWitnessCmbo
The relationships are as follows:
tblSurveyors - one to many tblCaseSurveyors - many to one tblCaseInfo
tblCaseInfo - one to many - tblCaseWitnesses
I have a macro called mcrWitnesses that runs a Make Table Query that
collects all the tblCaseSurveyors and makes the table called tblWitnessCmbo,
then the macro runs an append query that adds the tblCaseWitnesses to the
tblWitnessCmbo.
On a form I have coded a command button that runs the mcrWitnesses and opens
a report. The problem is if one user is viewing a report and another user
clicks the command button on the form, the 2nd user gets an macro error
because the first thing the macro does is deletes the table:
tblWitnessCmbo, before running the Make Table query.
Is there another way I could have done this? Or should I let it go as this
application will be used by less than 100 people and the likelihood of two
people accessing this at the exact same time is not that great? Or is there
some what to add VBA code to my command button that gives the user a message
if the tblWitnessCmbo cannot be deleted because it is in use by another user
and that they must wait and try again later? It took me ages to figure out
what I have now. I am overwhelmed at the thought of beginning again.
TIA
S.Jackson