D
dee
I will try to explain this as clearly as I can!
I have a MainForm and a SubForm.
MainForm contains a bound combo box control, PptNo, in addition to Date and
Time controls. It also contains a NewRecord button that provides the user
with a new, blank MainForm, from which they select the PptNo, fill in the
Date and Time. When they hit Tab after entering the Time, an append query
runs that populates the SubForm.
All of this works very well.
Except - I don't want users to be able to select another PptNo from the
combo box once they have generated a MainForm/SubForm for an individual, as
this will obviously assign the SubForm data to another (wrong) PptNo.
I DO want the users to be able to modify the Date and Time in the MainForm,
and also be able to modify the data in the SubForm.
I have tried Allen Brown's form locking and it worked, but doesn't exactly
suit my needs. I tried all kinds of other things, but am stuck.
This is what I would like:
To have the PptNo control automatically lock once the initial form (data
entry) has been completed for the Ppt, so that no edits can be made to that
control.
I managed to do this through my trials and errors, but then when I click the
New Record button, it won't give me a new blank form in which to input
another Ppt's data.
Is there some way that, when I click on the New Record button, that the
PptNo combo unlocks, allows the selection of a PptNo, the input of Date and
Time and the append query to run, and then re-lock the PptNo combo box?
I tried adding code, but kept getting errors.
Thanks so much for any advice and help!
I have a MainForm and a SubForm.
MainForm contains a bound combo box control, PptNo, in addition to Date and
Time controls. It also contains a NewRecord button that provides the user
with a new, blank MainForm, from which they select the PptNo, fill in the
Date and Time. When they hit Tab after entering the Time, an append query
runs that populates the SubForm.
All of this works very well.
Except - I don't want users to be able to select another PptNo from the
combo box once they have generated a MainForm/SubForm for an individual, as
this will obviously assign the SubForm data to another (wrong) PptNo.
I DO want the users to be able to modify the Date and Time in the MainForm,
and also be able to modify the data in the SubForm.
I have tried Allen Brown's form locking and it worked, but doesn't exactly
suit my needs. I tried all kinds of other things, but am stuck.
This is what I would like:
To have the PptNo control automatically lock once the initial form (data
entry) has been completed for the Ppt, so that no edits can be made to that
control.
I managed to do this through my trials and errors, but then when I click the
New Record button, it won't give me a new blank form in which to input
another Ppt's data.
Is there some way that, when I click on the New Record button, that the
PptNo combo unlocks, allows the selection of a PptNo, the input of Date and
Time and the append query to run, and then re-lock the PptNo combo box?
I tried adding code, but kept getting errors.
Thanks so much for any advice and help!