PC Review


Reply
Thread Tools Rate Thread

DayConstants HELP!

 
 
Ivan Palčić
Guest
Posts: n/a
 
      8th Jun 2004
Hi
i need a bit of help, the problem is next:
i have in my form date field so after i entered the date i want that access
only warns me if the day in a date i entered isn't saturday and goes on. I
wrote the following code but the problem is that when i enter the Saturday's
date it also gives me a warning that it isn't Saturday.
Thanx in advance

Private Sub EndDate_AfterUpdate()
Dim EndDate As Date
EndDate = Forms!Table1!EndDate.Value
If EndDate = DayConstants.mvwSaturday Then
Exit Sub
Else: MsgBox "Day you entered isn't Saturday!", vbExclamation + vbOKOnly,
"Information"
End If
End Sub


 
Reply With Quote
 
 
 
 
Elwin
Guest
Posts: n/a
 
      8th Jun 2004

If Weekday(EndDate) <> vbSaturday Then
MsgBox "Not Saturday"
End If

>-----Original Message-----
>Hi
>i need a bit of help, the problem is next:
>i have in my form date field so after i entered the date

i want that access
>only warns me if the day in a date i entered isn't

saturday and goes on. I
>wrote the following code but the problem is that when i

enter the Saturday's
>date it also gives me a warning that it isn't Saturday.
>Thanx in advance
>
>Private Sub EndDate_AfterUpdate()
>Dim EndDate As Date
>EndDate = Forms!Table1!EndDate.Value
>If EndDate = DayConstants.mvwSaturday Then
> Exit Sub
>Else: MsgBox "Day you entered isn't Saturday!",

vbExclamation + vbOKOnly,
>"Information"
>End If
>End Sub
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:04 AM.