A10Instructor
Technical User
Hi,
I have 5 tables in my data base. My ultimate goal is to print a certificate. I would like to create a form in which you use combo boxes to select the desired information from each table that would go onto the certificate. I then wish to dsplay the selected info on the same form for verification prior to printing.
I have a combo box with the following code on a form/subform that works very well. I use this to edit the tables and would like to use this for this effort as well:
[blue]
Sub SetFilter()
Dim LSQL As String
LSQL = "select * from course_info"
LSQL = LSQL & " where crscode = '" & cboSelected & "'"
Form_Editcoursesub.RecordSource = LSQL
End Sub
Private Sub cboSelected_AfterUpdate()
'Call subroutine to set filter based on selected course
SetFilter
End Sub
Private Sub Form_Open(Cancel As Integer)
'Call subroutine to set filter based on selected course
SetFilter
End Sub
[/blue]
Any clues as to how to tackle this?
A10 Instructor
"The World is My Classroom
I have 5 tables in my data base. My ultimate goal is to print a certificate. I would like to create a form in which you use combo boxes to select the desired information from each table that would go onto the certificate. I then wish to dsplay the selected info on the same form for verification prior to printing.
I have a combo box with the following code on a form/subform that works very well. I use this to edit the tables and would like to use this for this effort as well:
[blue]
Sub SetFilter()
Dim LSQL As String
LSQL = "select * from course_info"
LSQL = LSQL & " where crscode = '" & cboSelected & "'"
Form_Editcoursesub.RecordSource = LSQL
End Sub
Private Sub cboSelected_AfterUpdate()
'Call subroutine to set filter based on selected course
SetFilter
End Sub
Private Sub Form_Open(Cancel As Integer)
'Call subroutine to set filter based on selected course
SetFilter
End Sub
[/blue]
Any clues as to how to tackle this?
A10 Instructor
"The World is My Classroom