Advertisement

03.18.2008 at 03:27AM PDT, ID: 23249671
[x]
Attachment Details

Urgent syntax query regarding date and time format

Asked by pauldownham in Access Coding/Macros

Tags: Microsoft, Access, 2002, VBA

This should be simple, but I'm going round in circles!

We have a table (tblResults) that contains a time field (Tm) that is stored in the format dd/mm/yyyy hh:mm:ss  This table also contains a long numeric field (Tp)

I'm now trying to load up a second table with the daily maximums, where the date format is dd/mm/yyyy

So, I've tried things like this ... trying to tie the formats together:

Dim criteria
criteria = "format(Tm," & """dd\/mm\/yyyy""" & ") = " & [checkday]
.
.

With data
.AddNew
!dateline = [checkday]
!max = DMax("Tp", "tblResults", [criteria])
.
.

But it doesn't work!

Any clues please?Start Free Trial
 
Loading Advertisement...
 
[+][-]03.18.2008 at 05:18AM PDT, ID: 21150131

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Coding/Macros
Tags: Microsoft, Access, 2002, VBA
Sign Up Now!
Solution Provided By: LSMConsulting
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628