Background
Using mysql as the backend and ms access as the frontend. Have a table Client with has {Client_Id, name, etc,etc,etc} Have form for trying to display the clients details. Want to have a combobox which the users selects the "Client_Id" of the client the wish to see. And have the form populate with this users details. Form is called "Existing Client" its record source is a query called "Add_Client_query" the table with the details in is called "Client" the field that identifies each client is "Client_Id".
My latest attempt is in the event "on change" for the combobox insert code
Private Sub Surname_combo_Change()
Dim twClients As ADODB.Recordset
Set twClients = New ADODB.Recordset
twClients.Open "Select * From Add_Client_query where Client_Id = 60", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
Set Forms("Existing Client").Recordset = twClients
End Sub
Doesn't error just gives me a blank form(when I say blank I mean the field dissappear and it gives me a grey window) I hardcoded the Client_Id to 60 as I know there is a client in the database with that Id and I was just trying to eliminate whats wrong
Very new to VB coding only know really what this site has taught me(which has been great by the way), need help!!!!!!!
Am I even on the right track?????????