D
Dorian
I have an OnClick event that does the following:
DoCmd.ApplyFilter , "[TicketNo] = " & Me!GetTicket
TicketNo is a column in my bound table and GetTicket is a textbox on the form.
When I enter a value in the textbox and click the command button, the code
works and I get the requested recond on the form.
When I call the command button Click() procedure from other code, however, I
get a prompt for parameter [TicketNo], the ApplyFilter is failing. I have
moved a valid value to GetTicket control.
Does anyone have a clue why this is happening?
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
DoCmd.ApplyFilter , "[TicketNo] = " & Me!GetTicket
TicketNo is a column in my bound table and GetTicket is a textbox on the form.
When I enter a value in the textbox and click the command button, the code
works and I get the requested recond on the form.
When I call the command button Click() procedure from other code, however, I
get a prompt for parameter [TicketNo], the ApplyFilter is failing. I have
moved a valid value to GetTicket control.
Does anyone have a clue why this is happening?
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".