Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

working day date diff

Forum home » Delegate support and help forum » Microsoft Access Training and help » Working day date diff

Working day date diff

ResolvedVersion 2003

Jason has attended:
Access Advanced course
Access VBA course

Working day date diff

I am struggling to find a way of calulating the number of working days between a fixed date and the current date

Thanks in advance

Jason

Edited on Tue 16 Sep 2008, 12:03

RE: working day date diff

Hi Jason

The DateDiff function doesn

RE: working day date diff

That worked well thanks!

I've got the following code to work to open a restricted form called FrmInternalStaffPrivate which is linked to the original form where the command button is located. Problem is that it opens at the first record and not the related record like a sub form would.

What code do I need to add and where?

Cheers

Jason

-------------------------------------------------------

Private Sub cmdOpenFrmInternalStaffPrivate_Click()

'Attached to On Click event of cmdFrmInternalStaffPrivate

Dim strPasswd

strPasswd = InputBox("Enter Password", "Restricted Information")

'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.

If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If

'If correct password is entered open InternalStaffPrivate form
'If incorrect password entered give message and exit sub

If strPasswd = "Password" Then
DoCmd.OpenForm "FrmInternalStaffPrivate", acNormal
Else
MsgBox "Sorry, you do not have permission to access this information", _
vbOKOnly, "Important Information"
Exit Sub
End If
End Sub

Access tip:

How To Display An '&' In A Label In A Form

To have your label display a sentence with an &(ampersand) in it, like Fox & Hound simply type it as:

Fox && Hound

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.