Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto fill

Status
Not open for further replies.

Krash878

Programmer
May 8, 2001
172
US
This one is a little weird and you may agree.

I would like to build a form that lets me look at my table at info that is already there. On that form I would like to have a command button that would be called OCB. This button would write to two feilds when clicked. The two feilds are DateOCB and OCBFee. The data would be Date() for DateOCB and $20.00 for OCBFee. It would populate strait to the table and not show on the Form.

Can this be done and if it can be done how would I come about doing this.

Thanks
Kenny
 
the easiest way would be to include those fields on your form but set the visible property to false
then on the buttons event set the fields value to what ever you desire.
example!

Private Sub Command1_Click()
me.DateOCB = Date()
me.OCBFee = "20.00"
end sub

 
One way is still to have those 2 fields in the form with visible property set to No. Then do fill-up in the cmdClick. As the two fields have the table as the control source, value will be updated automatically.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top