Autofill Fields in Form

Lee83

New member
Local time
Tomorrow, 05:26
Joined
Feb 19, 2007
Messages
9
Hi,

I have a form that has a field called scope of work which is a combo box that you have 3 options to select from.

I have set up a table called scope of work which has other fields
ie: Scope of work, Est Man Hours, Normal Rate, Overtime Rate and Est Due Date.

The combo box works fine selecting the scope of work but I want the fields on the form to automatically fill in the other information. Say they select option 1 in the scope of work based on this option it will fill in 40hrs at $150 per hour normal rate and $180 per hour overtime rate and this will take 4 weeks to complete. Based on the start date field it will also calculate 4 weeks from now for the completion date.

I have tried everything from queries using SQL statements, joining tables one to many etc.. and for some reason I cannot seem to get it to work for me and I've spent hours searching around for a solution..

If anyone has any ideas it would be greatly greatly greatly appreciated!!

Thanks a Bunch
 
The easiest way is to include the information you require in the combo box query. then use the columns property of the combo box to access each column when the row is selected.

ie controlSource = ME!myCombobox.Column(1)

as you select differnt rows the date in the calculated control will automatically be updated.
 

Users who are viewing this thread

Back
Top Bottom