Using ACCESS 2010 created a data entry form that connects to a linked table in SQL Server.
The problem is that the form now only displays the test data, and won't let me enter new data. The controls at the bottom of the form will only let me go thruogh the data, but the button that lets me enter data is turned off. Is there a way of turning it on? And what did I do to turn it off?
I have added if this bit of code that works on other aps that relinks the odbc tables, its added in OnLoad.
Dim tdf As DAO.TableDef
For Each tdf In CurrentDb.TableDefs
' check if table is a linked table
If Len(tdf.Connect) > 0 Then
tdf.Connect = "ODBC;DSN=dsnname Server;APP=Microsoft Office 2010;DATABASE=Mydatabase;Uid=hello;Pwd=mystuff;Network=nnnnnnn"
tdf.RefreshLink
End If
Next
Any help would be greatly appreciated
Thanks in advance
jpl
The problem is that the form now only displays the test data, and won't let me enter new data. The controls at the bottom of the form will only let me go thruogh the data, but the button that lets me enter data is turned off. Is there a way of turning it on? And what did I do to turn it off?
I have added if this bit of code that works on other aps that relinks the odbc tables, its added in OnLoad.
Dim tdf As DAO.TableDef
For Each tdf In CurrentDb.TableDefs
' check if table is a linked table
If Len(tdf.Connect) > 0 Then
tdf.Connect = "ODBC;DSN=dsnname Server;APP=Microsoft Office 2010;DATABASE=Mydatabase;Uid=hello;Pwd=mystuff;Network=nnnnnnn"
tdf.RefreshLink
End If
Next
Any help would be greatly appreciated
Thanks in advance
jpl