D
DeVille
Hi I am having problems with requery command
I have this combo box[NaneOfSignatory] on a sub form
(ExecutionChecklistForm), it uses a query as its row
source. The query(SignatoryQuery) finds all the Signatory
Names from a list in the (ParticipantDetailsTable) . The
names of people the query returns are all signatory names
from the business which is currently in the
[BusinessName] combo box on the main form. This works
fine until I change the business name in [BusinessName]
combo box which should also change the list of signatory
names to chose from in the [NameOfSignatory] combo box,
but it does not requery. Ps if I close the form then
reopen it with a different name in the [BusinessName] box
it chooses the correct signatory names, so I am sure my
query function is working, its just just the requery bit
that's the problem.
(Query)
SELECT ParticipantDetailsTable.[Participant Name]
FROM ParticipantDetailsTable
WHERE (((ParticipantDetailsTable.BusinessName)=[Forms]!
[LocationDetailsForm]![BusinessName]));
(Sub.NOTE.this is the part that is not working)
Private Sub BusinessName_AfterUpdate()
Me!NameOfSignatory.Requery
End Sub
if anyone can help thanks in advance
I have this combo box[NaneOfSignatory] on a sub form
(ExecutionChecklistForm), it uses a query as its row
source. The query(SignatoryQuery) finds all the Signatory
Names from a list in the (ParticipantDetailsTable) . The
names of people the query returns are all signatory names
from the business which is currently in the
[BusinessName] combo box on the main form. This works
fine until I change the business name in [BusinessName]
combo box which should also change the list of signatory
names to chose from in the [NameOfSignatory] combo box,
but it does not requery. Ps if I close the form then
reopen it with a different name in the [BusinessName] box
it chooses the correct signatory names, so I am sure my
query function is working, its just just the requery bit
that's the problem.
(Query)
SELECT ParticipantDetailsTable.[Participant Name]
FROM ParticipantDetailsTable
WHERE (((ParticipantDetailsTable.BusinessName)=[Forms]!
[LocationDetailsForm]![BusinessName]));
(Sub.NOTE.this is the part that is not working)
Private Sub BusinessName_AfterUpdate()
Me!NameOfSignatory.Requery
End Sub
if anyone can help thanks in advance