V
Vella
Duane has been helping me quite a bit, however, I need to get this script
(his script) to work on my form...ASAP. Even I can't be on the computer 24/7
Can anyone tell me why this is not working? (aside from stupidity on my part
....this has been established)
Private Function UpdateRowSourceProp()
Dim strSQL As String
strSQL = "SELECT ApptTime FROM AppointmentTimes " & _
"WHERE ApptTime not in (SELECT " & _
"Appointment_Time FROM Table1 WHERE " & _
"Appt_Date = #" & Me!Appt_Date & "#);"
Me!ATime.RowSource = strSQL
End Function
I am calling this function with the Got Focus for ATime field
UpdateRowSourceProp().
What I need to establish is that if a time is entered for a date that
already has that time then the list should only be populated by those times
not selected on that day. At this point, i get a blank list. However, when i
look at the properties for ATime, the rowsource is filled with the SQL
statement. VERY ODD.
Any ideas?
(his script) to work on my form...ASAP. Even I can't be on the computer 24/7
Can anyone tell me why this is not working? (aside from stupidity on my part
....this has been established)
Private Function UpdateRowSourceProp()
Dim strSQL As String
strSQL = "SELECT ApptTime FROM AppointmentTimes " & _
"WHERE ApptTime not in (SELECT " & _
"Appointment_Time FROM Table1 WHERE " & _
"Appt_Date = #" & Me!Appt_Date & "#);"
Me!ATime.RowSource = strSQL
End Function
I am calling this function with the Got Focus for ATime field
UpdateRowSourceProp().
What I need to establish is that if a time is entered for a date that
already has that time then the list should only be populated by those times
not selected on that day. At this point, i get a blank list. However, when i
look at the properties for ATime, the rowsource is filled with the SQL
statement. VERY ODD.
Any ideas?