473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

mdb to accdb conversion

I have a DB that was created in Access 2000. I remember seeing that there were issues with 2007 when it came out so I never upgraded to it. We're now using an Office 365 subscription. Lately, occasionally, the DB will stop working with an error message "can't find the file". When I try to open the data file there is an error message that says the file has become unstable and Access will try to recover it. This has worked so far but I think I need to convert to the current format. My problem is that I do not have any of the previous versions that will allow the conversion. Does anyone have any suggestions?

Thanks!
Apr 14 '20 #1
12 3126
twinnyfo
3,653 Expert Mod 2GB
Knowlton,

As far as I know, you "should" be able to create a new DB in Access 365, then import all your objects from your old DB into your new DB. In my experience, this is the "best" way to have a completely fresh and updated DB. Don't forget to update any references that you used in your VBA editor.

There still may be a few compatibility issues, but most of those should be relatively few, and relatively easy to address, based upon any error messages you receive.

Hope this hepps.

If you come across any snags, please let us know and we will address particulars.
Apr 14 '20 #2
Thanks for your reply! I have a split DB so I'm assuming that I need to convert both front end and back end files.
Apr 14 '20 #3
twinnyfo
3,653 Expert Mod 2GB
Yes. Then just run the Linked Table Manager to relink to the new BE.

Best of luck!
Apr 14 '20 #4
Thanks! I'll probably need it.
Apr 14 '20 #5
I'm having trouble trying to correct the following issue. I have an "Invalid use of NEW keyword" error message on the line "Dim ListStates As New Recordset" in the following code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub State_NotInList(NewData As String, Response As Integer)
  2.     'Provide for adding a new state
  3.     Dim Confirm
  4.     Confirm = MsgBox(StrConv(NewData, vbProperCase) _
  5.         & " Not In List." & _
  6.         vbCrLf & "Do You Want To Add It?", _
  7.         vbInformation + vbYesNo, "Limited Entry")
  8.     If Confirm = vbYes Then
  9.         Dim ListStates As New Recordset
  10.         ListStates.Open Source:="tlkpStates", _
  11.             ActiveConnection:=CurrentProject.Connection, _
  12.             CursorType:=adOpenKeyset, _
  13.             LockType:=adLockOptimistic
  14.         ListStates.AddNew
  15.         ListStates!State = NewData
  16.         ListStates.Update
  17.         Me.State = NewData
  18.         Response = acDataErrAdded
  19.     Else
  20.         Response = acDataErrContinue
  21.     End If
  22.  
  23. End Sub
Thanks.
Apr 14 '20 #6
twinnyfo
3,653 Expert Mod 2GB
Try declaring it directly as an ADODB Recordset, as this is what it is (apparently).

Expand|Select|Wrap|Line Numbers
  1. Dim ListStates As ADODB.Recordset
Apr 14 '20 #7
Get a compile error "user-defined type not defined"
Apr 14 '20 #8
twinnyfo
3,653 Expert Mod 2GB
You’ll have to add the reference to ADO.
Apr 14 '20 #9
I'm not sure how to do this. I've been unable to get anything to work.
Apr 15 '20 #10
twinnyfo
3,653 Expert Mod 2GB
In your VBA Editor, Tools, References....
Apr 15 '20 #11
Microsoft Office 16.0 Access database engine Object Library is checked. That's the only thing I see relative to ADO.
Apr 15 '20 #12
twinnyfo
3,653 Expert Mod 2GB
Microsoft ActiveX Data Objects 6.1 Library

Hope that hepps!
Apr 16 '20 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris | last post by:
How do you stop a user from double-clicking on .ACCDB file of 2007 and being able to see the tables' and queries structure ? If the solution is the database password, then database cannot open...
3
by: Robert | last post by:
I understand that new features would not be available but is there any way I could open an accdb database in Access 2003? Robert
4
by: ARC | last post by:
I have another question. With Access 2007, as I understand it, you only need to use the .accdb if you are using features such as memo notes history, or the multiple selections for a given key id. ...
0
by: brendanmcdonagh | last post by:
Hi all, I have been working with java on a database program that connects via jdbc odbc access driver on my xp desktop. It is working fine but I'm installing it on 3 pc's tomorrow so testing it...
1
by: jypw | last post by:
Hi! I have 2 accdb files. I need to create a recordset that will include rows comming from 2 tables that are in 2 different accdb file. Like: select a.no, a.name, a.address, b.total from...
3
by: bullfrog83 | last post by:
I have an .accdb that is linked to a sql server db. I can see the sql db tables in the Navigation Pane. However, I have views, stored procedures and functions on the sql server that I want to link to...
1
by: Eli Naiman | last post by:
Previously I asked a question "Is this a bug in Access 2013" and I used the "Manage Attachments" section to attach two accdb files. I just realized that accdb files are not in the list of valid...
2
by: Eli Naiman | last post by:
See attached accdb files In Form1 Key Preview is set to YES When you press the ESC key the application exits. However if you click on Button1 the ESC key does not work anymore. Button1 just...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.