I am trying to use a MS Access 2000 front end for a MySql DB. I have MDAC ver 2.8, Jet4 SP8, on a WinXP Home mach. trying to update tables to a MySql 4.0.15 server. I have MySql ODBC driver version 3.51.06 (latest is 3.51.11, but from what I have read the .11 is buggy). I have a form that I am wanting to use a combo box to enter customer info from another table. I have tried deleting the link to the tables, the ODBC "Return Matching rows" is checked. I have a timestamp field in the DB and on the form. Now when I use the combobox all my fields are #deleted#, if I close the form and open it again the info is there. At the end of my combo code I refresh the page. Here's the combo box code:
Private Sub Combo66_AfterUpdate()
Dim customer As DAO.Recordset, SQLTEXT
SQLTEXT = "select * From cust where " & "[cust] = '" & Me![client] & "';"
Set customer = CurrentDb.OpenRecordset(SQLTEXT)
Me![client] = customer![cust]
Me![add1] = customer![add1]
Me![city] = customer![city]
Me.Refresh
Me.Refresh
End Sub
Does someone with more knowledge than me see what I am doing wrong??
Thanks for any and all replies
Ed
Private Sub Combo66_AfterUpdate()
Dim customer As DAO.Recordset, SQLTEXT
SQLTEXT = "select * From cust where " & "[cust] = '" & Me![client] & "';"
Set customer = CurrentDb.OpenRecordset(SQLTEXT)
Me![client] = customer![cust]
Me![add1] = customer![add1]
Me![city] = customer![city]
Me.Refresh
Me.Refresh
End Sub
Does someone with more knowledge than me see what I am doing wrong??
Thanks for any and all replies
Ed