is there an alternative to the .seek method that will work for me? Ive tried Mytable.FindFirst Forms![Vehicle Profile]![VIN] instead and I still get the same error
Ok added Microsoft DAO 3.6 Object Library, tested the database and still had the same error when I clicked the button. "Operation is not supported for this type of object"
The conversion was done through access. The database started in 2003 .mdb format, Through the Access office button I hit convert, and it converted/saved it as a new .accdb file. Both the front end and back end are 2007 .accdb
Still the same. The message was "Invalid Operation" when i used DB_OPEN_TABLE. Now I have DB_OPEN_DYNASET and the error instead is "Operation is not supported for this type of object"
Yes the database was created by someone else. My job was to convert it to Access 2007 and then make a backend. In the VBA no errors come when I compile the code. The error just comes when i run the database, does not give me an option to debug then, just "ok".
I've tried changing "DB_OPEN_TABLE" to "DB_OPEN_DYNASET" and instead of invalid operation, I get "Operation is not supported for this type of object".
Any ideas??
My database was working fine before an access back-end was created. I was able to click buttons on the form that took me to other forms. Now after the database was split, when I click the buttons, I get an "Invalid Operation".
Here is the code behind the button. Does something need to be...
Your right, I see where the mistake is, I set mytable twice.
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Dim strSQL As String
strSQL = "SELECT * FROM [Vehicle Operating Data] WHERE VIN = '" & Me!VIN & "'"
Set Mytable = MyDB.OpenRecordset(strSQL, dbOpenDynaset)
This now works...
Hopefully I make sense when trying to explain this.. Before I split my database into a front and backend, the code blocks listed below worked fine and the buttons on the forms did what they were suppost to do:
Dim MyDB As DAO.Database, Mytable As DAO.Recordset, x As String
Set MyDB =...
I have a maintenance button on a form that I want to be visible/invisible based on user-level security access. However for testing purposes in the form_load I set the button to be invisible, but it is still visible. Here is the code:
Private Sub Form_Open(Cancel As Integer)...