home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1880
Discussions: 188,398, Posts: 2,243,591, Members: 232,627
Old August 5th, 2004, 07:49 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jul 2004
Posts: 11
get date in access

Is it possible (notices is using forum a lot) to do a get date action in access to compare to a date already stored in a date field and have a message box appear if the date is the date stored or after??

Thanks

Dan

danlindley is offline   Reply With Quote
Old August 8th, 2004, 07:01 PM     #2 (permalink)
Ultimate Member
 
Join Date: Oct 2001
Posts: 21,026
You'd have to write a short vba module to do it behind the form.

very easy to write though
basically

Get Date1
Get TodayDate
If date1 > TodayDate
MsgBox "Yep its later than today"
Else
MsgBox "Nope, it happened previous to today"
End If

vass0922 is offline   Reply With Quote
Old August 9th, 2004, 05:26 PM     #3 (permalink)
Junior Member
 
Join Date: Jul 2004
Posts: 11
Thanks Vass;

Erm thanks, but it doesn'y seem to be working, as i amnot fmailiar with VB.

Get Date1 <-appears in red
Get TodayDate <-appears in red
If date1 > TodayDate <-appears in red
MsgBox "Yep its later than today"
Else
MsgBox "Nope, it happened previous to today"
End If

The date i want is in table "personal details" and is vcalled "requal date" how would i use this field in your script?? I need to get the days date, and minus a month, and compare the two, so that a reminder is issued if the Requal date is within a month of the actual date.

Thanks again for your help.

Dan

danlindley is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access Help with a Query Marvinator Applications and Operating Systems 2 December 2nd, 2003 03:24 PM
batch file confusion vass0922 Applications and Operating Systems 17 September 22nd, 2002 09:41 PM
Where did this date come from? Jonty General Tech Discussion 12 April 16th, 2002 05:43 PM
Access query problem SlipGun Webmastering and Programming 9 April 15th, 2002 10:24 PM

Most Active Discussions
Is It Just Me? (2904)
Unarmed man on his stomach shot by .. (6)
3-days in and no threads about Gaza (161)
New Build ( Finally ) (6)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
Folderchat Weekday thread (444)
Upgrading RAM (6)
Recent Discussions
Left 4 Dead Small Freezes (3)
RCA 52Inch HDTV wont turn on (4)
wishin i could edit my aol prof.. (0)
For cheap price and good qualit.. (0)
Sporadic internet connectivity (2)
Assassins Creed PC Problems (40)
I think my PSU is dieing (1)
building a gaming computer, inp.. (0)
Iming and surfing slowed down (3)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:22 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28