Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data entry Problem 1

Status
Not open for further replies.

jpl458

Technical User
Sep 30, 2009
337
US
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



 
I took at look at what you suggestion and decides to start from scatch againn since I was not that fir into it. Anf for reason I don't know, it worked.

Thanks for the quick response

jpl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top