G
Guest
I think I should explain this better....
I want to use one form 'frmAssignTime' to enter information in a text box
such as [0830] on the form 'frmSchedule' by using the dbl click event of a
text box [0830LastName].
The form 'frmSchedule' has a hidden text box for each 30 minute time slot,
hence 0830, 0900, 0930 and so on.
Double clicking on the text box [0830LastName] opens the form
'frmAssignTime'.
The form 'frmAssignTime' allows the user to select a patient name and click
on a button to assign that patient's PatientID value to the [0830] text box
on the 'frmSchedule'. Then the [0830LastName] looks up the patients last name
and displays it.
I want to use the same form for all the [0830LastName], [0900LastName] etc..
text boxes double click event. so I need to pass a string to the form
'frmAssignTime' that contains the field name of the hidden text box [0830],
[0900] etc...
I've tried :
Dim TimeSlot as String
TimeSlot = "Forms!frmSchedule." & strTimeSlot
TimeSlot = Forms!frmSelectPatient.[PatientID]
etc...
I tried passing the 'strTimeSlot' string as an argument, but when I step
through the code, the value for TimeSlot is just 'Forms!frmSchedule.' and it
shows strTimeSlot as empty.
So by now it's probably obvious to you what I am missing, but I can't seem
to figure it out.
Thanks again for any help.....
I want to use one form 'frmAssignTime' to enter information in a text box
such as [0830] on the form 'frmSchedule' by using the dbl click event of a
text box [0830LastName].
The form 'frmSchedule' has a hidden text box for each 30 minute time slot,
hence 0830, 0900, 0930 and so on.
Double clicking on the text box [0830LastName] opens the form
'frmAssignTime'.
The form 'frmAssignTime' allows the user to select a patient name and click
on a button to assign that patient's PatientID value to the [0830] text box
on the 'frmSchedule'. Then the [0830LastName] looks up the patients last name
and displays it.
I want to use the same form for all the [0830LastName], [0900LastName] etc..
text boxes double click event. so I need to pass a string to the form
'frmAssignTime' that contains the field name of the hidden text box [0830],
[0900] etc...
I've tried :
Dim TimeSlot as String
TimeSlot = "Forms!frmSchedule." & strTimeSlot
TimeSlot = Forms!frmSelectPatient.[PatientID]
etc...
I tried passing the 'strTimeSlot' string as an argument, but when I step
through the code, the value for TimeSlot is just 'Forms!frmSchedule.' and it
shows strTimeSlot as empty.
So by now it's probably obvious to you what I am missing, but I can't seem
to figure it out.
Thanks again for any help.....