need a code to display date & time on the form so that when form is print i get to see the day & time events took place

Recommended Answers

All 4 Replies

Look in the help index for Date and/or Time

you mean this?

Private Sub Form_click()
Print Date; Time
End Sub

I don't understand this: when form is print i get to see the day & time events took place

Look in the help index for Date and/or Time

you mean this?

Private Sub Form_click()
Print Date; Time
End Sub

I don't understand this: when form is print i get to see the day & time events took place

What Help index did you look in to get that? If that's what it says, change to Visual Basic. That's the help index I was thinking of.

And while you are reading... look up Now()...

Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.