Hi I'm currently creating a form that will allow a user to enter a college course onto the database. However some courses cannot be selected with certain courses.
Currently i'm using a combo box that will allow the user to select a prerequisite from a dropdown. However if the course is not listed I need the course and its details to be entered.
For this I will have another form that will allow the user to enter the details of the prerequisite and then select it from the drop down.
I have added a record called '>CREATE NEW' into the table that the combo box is attached to.
Here is the code
[/Code]
If [ComboPreReq] = ">CREATE NEW" Then
DoCmd.OpenForm "NewCourseInput"
Else
MsgBox ""
End If
[/Code]
However it does not appear to be functioning and the form will not open which the 'create new' is selected.
Obviously i'm very new to VBA!
Many thanks in advance
T
Currently i'm using a combo box that will allow the user to select a prerequisite from a dropdown. However if the course is not listed I need the course and its details to be entered.
For this I will have another form that will allow the user to enter the details of the prerequisite and then select it from the drop down.
I have added a record called '>CREATE NEW' into the table that the combo box is attached to.
Here is the code
[/Code]
If [ComboPreReq] = ">CREATE NEW" Then
DoCmd.OpenForm "NewCourseInput"
Else
MsgBox ""
End If
[/Code]
However it does not appear to be functioning and the form will not open which the 'create new' is selected.
Obviously i'm very new to VBA!
Many thanks in advance
T