Hi there,
I have a sample database from this forum which has a module named Variable and contains
Public SearchID As Integer
this works well for the sample database where the onclick event on the form with the search details coded as below,
SearchID = List0
DoCmd.OpenForm "frmCustomersSearch"
DoCmd.GoToControl "ID"
DoCmd.Close acForm, "frmFirstName"
DoCmd.FindRecord SearchID
When the selected name is selected the record is opened on the main form.
I am using the same principle but it doesn't work for my case, and prompts the error on
SearchID = List0
it says Type mismatch.
Instead of "ID" I have "Student_ID". Also my Student_ID is in the form
ADF54634 which is not an interger therefore it needs to be changed...what exactly?
I tried just for testing to create a Student_ID with intergers but when I click the record from a list of names it doesn't bring up the record on the database. The old record is still there..
Any help will be highly appreciated...
I have a sample database from this forum which has a module named Variable and contains
Public SearchID As Integer
this works well for the sample database where the onclick event on the form with the search details coded as below,
SearchID = List0
DoCmd.OpenForm "frmCustomersSearch"
DoCmd.GoToControl "ID"
DoCmd.Close acForm, "frmFirstName"
DoCmd.FindRecord SearchID
When the selected name is selected the record is opened on the main form.
I am using the same principle but it doesn't work for my case, and prompts the error on
SearchID = List0
it says Type mismatch.
Instead of "ID" I have "Student_ID". Also my Student_ID is in the form
ADF54634 which is not an interger therefore it needs to be changed...what exactly?
I tried just for testing to create a Student_ID with intergers but when I click the record from a list of names it doesn't bring up the record on the database. The old record is still there..
Any help will be highly appreciated...