DCount probs...still!
I have a query with a field that puts the records in sequential order by the ID field. The code is:
Num: DCount("*","ABC Query","ID <=" & [ID])
this gives results like
ID Num
41 1
43 2
49 4
47 3
55 5
etc..
What I want to do, however, is have the sequence based on the date and time the entry was entered (two separate fields).
ie
Date, Time, Num
01/01/04 09.50 1
01/01/04 09.51 2
02/01/04 10.21 3
03/04/04 09.20 4
etc.
I have tried and tried and tried, but I cannot find a way of getting the dcount thing above to work with a combination of these two fields. I have tried using a field that combines the date and time fields. but that doesn't seem to work.
Can someone with a better grasp of syntax please save the last remaining hairs on my head. thanx in advance.
I have a query with a field that puts the records in sequential order by the ID field. The code is:
Num: DCount("*","ABC Query","ID <=" & [ID])
this gives results like
ID Num
41 1
43 2
49 4
47 3
55 5
etc..
What I want to do, however, is have the sequence based on the date and time the entry was entered (two separate fields).
ie
Date, Time, Num
01/01/04 09.50 1
01/01/04 09.51 2
02/01/04 10.21 3
03/04/04 09.20 4
etc.
I have tried and tried and tried, but I cannot find a way of getting the dcount thing above to work with a combination of these two fields. I have tried using a field that combines the date and time fields. but that doesn't seem to work.
Can someone with a better grasp of syntax please save the last remaining hairs on my head. thanx in advance.