Add to my Command Button

B

Bob

--
I have already this on my command button is it possible to extend it by
adding this to it:

Private Sub Command220_Click()
Me!tbStartDate1 = DateSerial(Year(Date), Month(Date), 1)
Me!tbEndDate1 = DateSerial(Year(Date), Month(Date) + 1, 0)
tbEndDate1.SetFocus
tbEndDate1_LostFocus
End Sub

I would like to add to this script:

cbDailyCharge1 = tbSetUp,DailyCharge
tbDailyChargeRate1 = tbSetup,DailyRate
tbAdditionalCharge = tbSetUp,AddCharge
tbAdditionalChargeRate = tbSetUp,AddRate

Thanks for any help with this script...................Bob
 
D

Douglas J. Steele

Assuming that by "tbSetUp,DailyCharge", you mean you want the value of the
field DailyCharge in table tbSetUp, you can use the DLookup function.
 

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