Christofu
12-16-2008, 10:35 PM
I'm using a combo box that has two columns
ApptDate | ApptTime
dd/mm/yyyy | hh:nn:ss
The combobox has been set to search for corresponding record After Update. However it can't seem to succesfully search for both fields at once.
It first gave me this:
="[ApptDate] = " & "#" & Format([Screen].[ActiveControl],"dd/mm/yyyy") & "#"
But that just gave me the first record of that date regardless of what Time i had chosen.
Then i changed it to
="[ApptTime] = " & "#" & Format([Screen].[ActiveControl],"hh:nn:ss") & "#"
And alas, it just gave me the first record with that corresponding time regardless of the date.
So i put "And" in between them and now it doesnt produce any record. Am stuck. Could help please? Thanks!
ApptDate | ApptTime
dd/mm/yyyy | hh:nn:ss
The combobox has been set to search for corresponding record After Update. However it can't seem to succesfully search for both fields at once.
It first gave me this:
="[ApptDate] = " & "#" & Format([Screen].[ActiveControl],"dd/mm/yyyy") & "#"
But that just gave me the first record of that date regardless of what Time i had chosen.
Then i changed it to
="[ApptTime] = " & "#" & Format([Screen].[ActiveControl],"hh:nn:ss") & "#"
And alas, it just gave me the first record with that corresponding time regardless of the date.
So i put "And" in between them and now it doesnt produce any record. Am stuck. Could help please? Thanks!