Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2007

Tip: Looking for answers? Try searching our database.

Last Date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DS - 15 May 2007 19:28 GMT
I'm trying to find the last Date a transaction occured for a particular
customer and the DMax doesn't seem to be working.  Should I be using
something else?

Forms!Form6!Text2 = DMax("ChkDate", "tblChecks", "ChkCustomerID = " &
Forms!Form6!Text0)

Thnaks
DS
Maurice - 15 May 2007 20:57 GMT
Why not create a regular query sorted by Date descending and try that
instead. You could use a Dlookup for that. Try something like:

Forms!Form6!Text2 = DLookup("ChkDate", "YourQuery", "ChkCustomerID = " &
Forms!Form6!Text0) - where yourquery references the query you made.

Maurice

> I'm trying to find the last Date a transaction occured for a particular
> customer and the DMax doesn't seem to be working.  Should I be using
[quoted text clipped - 5 lines]
> Thnaks
> DS
Ofer Cohen - 15 May 2007 21:31 GMT
It should work, what do you get?

If the ChkCustomerID field is text then try
Forms!Form6!Text2 = DMax("ChkDate", "tblChecks", "ChkCustomerID = '" &
Forms!Form6![Text0] & "'")

Make sure that the name of the text box spelled correctly
Signature

Good Luck
BS"D

> I'm trying to find the last Date a transaction occured for a particular
> customer and the DMax doesn't seem to be working.  Should I be using
[quoted text clipped - 5 lines]
> Thnaks
> DS
DS - 16 May 2007 15:45 GMT
It works! Now, for whatever reason!
DS
DS
> It should work, what do you get?
>
[quoted text clipped - 13 lines]
>> Thnaks
>> DS
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.