Whats up everybody. Just want to see whats wrong with the VBA lingo that I have to open a form using an unbound combo box.
No matter what I select it takes me to my "transaction" form
Also, how do I ensure it will open up a new record and not got to the first one?Code:Private Sub cboNewForm_AfterUpdate() Dim strForm As String If Me.cboNewForm = "Account" Then strForm = "frmAccount" ElseIf Me.cboNewForm = "Category" Then strForm = "frmCategory" Else strForm = "frmTransaction" End If DoCmd.OpenForm strForm End Sub