Hello
This is my 1st post as a new user to the forum - so hello everybody. Please forgive me if i have posted in the wrong area.
my problem is that i am creating a database to be used at work which will allow a user to create a workshop job and add job lines to the job. Each job can have multiple job lines.
My database has the following tables / fields:
Jobs:
Job_Number AutoNumber
Fleet_Number Number
Depot Text
Booked_Date Date/Time
Job_Lines:
ID AutoNumber
Job_Description Text
Time_Allowed Date/Time
Repair_Code Text
Job_Job_Lines:
ID AutoNumber
JJL_Job_Number Number
JJL_Job_Desc Text
JJL_Job_Time Date/Time
I have created a form with a subform from tables: Jobs / Job_Job_Lines.
On the main form I have added a combo box (cboJob_Line_Select that selects the Job_Description and Time_Allowed from the Job_Lines Table) that will allow a user to select a Job_Description from the Job_Lines Table and I wanted the subform (Job_Job_Lines) to auto populate with the Job_Description and the Time_Allowed.
I used an After Update event procedure:
Private Sub cboJob_Line_Select_AfterUpdate()
Me.JJL_Job_Desc = Me![cboJob_Line_Select].Column(1)
Me.JJL_Job_Time = Me![cboJob_Line_Select].Column(2)
End Sub
However when I select a Job_Description using the combo box I get the following error:
Compile Error:
Method or Data Member not Found.
I tried a demo of auto populating main forms using a combo box here: http://support.microsoft.com/kb/319482 and this worked ok.
All the help received will be very much appreciated.
Thanks
Craig