E
Emma
Hi all,
I have a form, "Master Jobs Data Entry Form", on which there is a combo box
"Job_Type" that has a variety of items in it that when some of them are
selected various things happen. One item may open another form, another item
may cause an option box to open, etc. . . using a select case statement as
follows:
Private Sub Job_Type_AfterUpdate()
Dim MyOpenArgs As String
MyOpenArgs = Me!Job_ID & "," & Me!cbo_Account_No & "," &
Me!cbo_Account_No.Column(1)
Select Case Me!Job_Type
' Case 1 'Addendum
' DoCmd.OpenForm ""
Case 5 'Evaluations
DoCmd.OpenForm "Frm_Tbl_Evaluation_Details", , , , acFormAdd, ,
MyOpenArgs
Case 7 'Contract Options
DoCmd.GoToControl "comments"
Me!Frame_Contract_Type.Visible = True
Case 8 'Rentals
DoCmd.OpenForm "Frm_Rental_Detail", , , , acFormAdd, , MyOpenArgs
Case 12 'debit memos
DoCmd.OpenForm "Frm_Tbl_Debit_Memo", , , , acFormAdd, , MyOpenArgs
Case Else 'go to comments
DoCmd.GoToControl "Comments"
End Select
End Sub
I am having a problem getting the data to save in the "Master Jobs Data
Entry Form". What I mean is that in order to exit this form I am having to
move to a new record and then move back to the form.
Can someone tell me why this is happening? It's like when a selection is
made in the combo box "Job_Type" and a pop-up form opens the Master Jobs Data
Entry Form data is not being saved so when I open another form based on the
primary key of the Master Jobs Data Entry Form, the record has not yet been
saved and I can't print a report based on any information in that record.
What do I need to do to get the record in the "Master_Jobs_Data_Entry" form
saved when the pop-up forms open?
Thank you for any help you can provide.
Sincerely,
Thank you!
I have a form, "Master Jobs Data Entry Form", on which there is a combo box
"Job_Type" that has a variety of items in it that when some of them are
selected various things happen. One item may open another form, another item
may cause an option box to open, etc. . . using a select case statement as
follows:
Private Sub Job_Type_AfterUpdate()
Dim MyOpenArgs As String
MyOpenArgs = Me!Job_ID & "," & Me!cbo_Account_No & "," &
Me!cbo_Account_No.Column(1)
Select Case Me!Job_Type
' Case 1 'Addendum
' DoCmd.OpenForm ""
Case 5 'Evaluations
DoCmd.OpenForm "Frm_Tbl_Evaluation_Details", , , , acFormAdd, ,
MyOpenArgs
Case 7 'Contract Options
DoCmd.GoToControl "comments"
Me!Frame_Contract_Type.Visible = True
Case 8 'Rentals
DoCmd.OpenForm "Frm_Rental_Detail", , , , acFormAdd, , MyOpenArgs
Case 12 'debit memos
DoCmd.OpenForm "Frm_Tbl_Debit_Memo", , , , acFormAdd, , MyOpenArgs
Case Else 'go to comments
DoCmd.GoToControl "Comments"
End Select
End Sub
I am having a problem getting the data to save in the "Master Jobs Data
Entry Form". What I mean is that in order to exit this form I am having to
move to a new record and then move back to the form.
Can someone tell me why this is happening? It's like when a selection is
made in the combo box "Job_Type" and a pop-up form opens the Master Jobs Data
Entry Form data is not being saved so when I open another form based on the
primary key of the Master Jobs Data Entry Form, the record has not yet been
saved and I can't print a report based on any information in that record.
What do I need to do to get the record in the "Master_Jobs_Data_Entry" form
saved when the pop-up forms open?
Thank you for any help you can provide.
Sincerely,
Thank you!