G
Guest
Hello, I have 2 tables and each has separate date and time fields. I probably
should have had the date/time in one field but it's kind of late now. In any
case I need to compare the date and time of one record to the date and time
of the other record. I have a form/subform that uses data from the two
tables, the main form gets records from Table 1, the subform looks at the
date field of the main form to display the last record entered (of table 2)
prior to that date in the sub form. The problem is that depending on the last
record that was entered on table 2 it may be later than the date/time on the
main form. For Example, if the main form has a Date 2/3/06, Time 8:30, the
subform displays The record entered on 2/3/06 10:30 because it is just
looking at the date. I have been unsucessful in writing a query to look at
both the date AND time fields together and comparing them in sequence. Any
help would be appreciated.
should have had the date/time in one field but it's kind of late now. In any
case I need to compare the date and time of one record to the date and time
of the other record. I have a form/subform that uses data from the two
tables, the main form gets records from Table 1, the subform looks at the
date field of the main form to display the last record entered (of table 2)
prior to that date in the sub form. The problem is that depending on the last
record that was entered on table 2 it may be later than the date/time on the
main form. For Example, if the main form has a Date 2/3/06, Time 8:30, the
subform displays The record entered on 2/3/06 10:30 because it is just
looking at the date. I have been unsucessful in writing a query to look at
both the date AND time fields together and comparing them in sequence. Any
help would be appreciated.