Dater Button On Form

B

Ben

Hey All,

I have designed a payslip form and require the user to enter a date for the
payslip. I was wondering is there a way of me making a button next to the
payslip date, when clicked it inputs todays date into the payslip date field.
The name of my payslip date text box is 'PayslipID'. All help would be
great :) have a nice day
 
W

Wayne-I-M

Hi Ben

Create a new button and use this OnClick event

Private Sub ButtonName_Click()
Me.PayslipID = Date
End Sub
 
B

Ben

Thanks Wayne! Spot on answer :)
Ben

Wayne-I-M said:
Hi Ben

Create a new button and use this OnClick event

Private Sub ButtonName_Click()
Me.PayslipID = Date
End Sub

--
Wayne
Manchester, England.
Not an expert
Enjoy whatever it is you do
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top