473,401 Members | 2,068 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,401 software developers and data experts.

Convert a database from accdb to accde

hi everybody
Please I want a code to convert database from accdb to accde
thanks a lot
Feb 27 '16 #1
11 2270
Narender Sagar
189 100+
You don't need any code to convert it. Just use Save As command and proceed.
Feb 27 '16 #2
I want it in one step
instead of many steps i follow to reach the accde
thanks a lot
Feb 27 '16 #3
Rabbit
12,516 Expert Mod 8TB
I don't understand, are you saying you want to write custom code to do the conversion rather than following a few steps manually?
Feb 27 '16 #4
yes
1St step:-database tool--->MAKE ACCDE
2ND STEP:-adjust the new destination(accde folder)---->save
I hope the code involved d:\accde_Folder
thanks a lot for your attention
Feb 27 '16 #5
NeoPa
32,556 Expert Mod 16PB
There is an undocumented Action of the SysCmd Application method which is 603 and it will do a Make*DE task for you.

Here's a procedure I use to create a *DE file :
Expand|Select|Wrap|Line Numbers
  1. 'MakeMDE() creates an *DE file from an *DB file.
  2. Public Function MakeMDE(strDB As String _
  3.                       , Optional ByVal strDBTo As String = "" _
  4.                       , Optional ByVal strPW As String = "") As Boolean
  5.     Dim appAcc As Access.Application
  6.  
  7.     On Error GoTo ErrorHandler
  8.     If strDBTo = "" Then strDBTo = Left(strDB, Len(strDB) - 1) & "e"
  9.     If Exist(strFile:=strDBTo) Then
  10.         SetAttr strDBTo, vbNormal
  11.         Kill strDBTo
  12.     End If
  13.     Set appAcc = New Access.Application
  14.     With appAcc
  15.         Call AppWindowState(.Application, AppWindowState(Application))
  16.         If strPW > "" Then SendKeys strPW & "~"
  17.         Call .SysCmd(603, strDB, strDBTo)
  18.         Call .Quit
  19.     End With
  20.     Set appAcc = Nothing
  21.     MakeMDE = Exist(strDBTo)
  22.  
  23. ErrorHandler:
  24.     If Not appAcc Is Nothing Then Call appAcc.Quit
  25. End Function
It uses another procedure Exist() :
Expand|Select|Wrap|Line Numbers
  1. 'Exist() returns true if strFile exists.  By default ignores folders.
  2. '22/05/2003 Rewritten with better code.
  3. '20/05/2005 Added finding of R/O, System & Hidden files.
  4. '11/12/2012 Added handling of inaccessible drives.
  5. '22/05/2013 Added code to avoid false positives for folders.
  6. Public Function Exist(ByVal strFile As String _
  7.                     , Optional intAttrib As Integer = vbReadOnly _
  8.                                                    Or vbHidden _
  9.                                                    Or vbSystem) As Boolean
  10.     On Error Resume Next
  11.     'Strip trailing "\" characters as this gives a false reading.
  12.     If Right(strFile, 1) = "\" Then strFile = Left(strFile, Len(strFile) - 1)
  13.     Exist = (Dir(PathName:=strFile, Attributes:=intAttrib) <> "")
  14. End Function
Feb 28 '16 #6
thanks very much
please i want a database with a button included this function beacuse i tryied and give me an error
please i want the target in the code "d:\deps\accde"
thanks for your attention
Feb 28 '16 #7
NeoPa
32,556 Expert Mod 16PB
Please understand that we aren't a free resource to do your work for you. I suggest you look at what you have to do to turn this into what you need. There's very little left to do to be fair.
Feb 28 '16 #8
i am apologize for you
i can't apply this Procedure so i asked for a help
i am Practise Access since 2007 So i consider myself as a beginner
thanks NeoPa
thanks Rabbit
thanks Narender Sagar
Feb 28 '16 #9
NeoPa
32,556 Expert Mod 16PB
We cannot help further at this stage. You have not shown any interest in doing your own work, nor even in asking for help with your own attempts. Simply saying you've failed to get it to work is wholly inadequate.

If you try but fail then you can ask for help. You haven't yet, and until you do no-one will be allowed to prompt you further.

If your experience or skill is so under-developed that you can't start, even with most of the work done for you, then you probably need to do some work learning the basics before coming here asking for help. Some helpful places to start are :
  1. Microsoft Access Tutorials (Strive4Peace).
  2. Microsoft Access Tutorials
  3. Microsoft Office Tutorials.
  4. VBA Tutorial (Excel).

They may not all suit you but I expect you'll find some of them very helpful.
Feb 29 '16 #10
Thanks NeoPa
thanks for the code ,the links which i will studying them and from your nice advise:-
its time to begin learning vba that what also what i need
i must try and try before i ask for a help
i'll start with:-
Beginning Access 2003 VBA
VBA Programming For The Absolute Beginner Second Edition
From my heart:Thanks my brother "NeoPa"
Feb 29 '16 #11
NeoPa
32,556 Expert Mod 16PB
I sincerely hope you manage to make progress from those tutorials. There's some good stuff in them.

We'll be here when you're ready to go further. We can work with you to help you progress.
Mar 1 '16 #12

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

Similar topics

2
by: mia456789 | last post by:
We use the MS access database, I want to convert the database to mysql db , could suggest is there any tools / methods that I can export the table and data from access , and import it to the new...
2
by: David Lutz | last post by:
Hello, I want to convert an existing database with SQL_ASCII encoding to UNICODE encoding. (postgresql ver 7.3.2) I thought that it might be as easy as: pg_dump mydatabase > dump.sql...
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
6
by: xpcer | last post by:
Please help me to convert database. This is the problem, i work at an IT company. i'm junior database engineer at there. my task is converting database file from another format to mysql format....
2
by: masudkarim | last post by:
Dear friends, Dear Friends. I’m working financial software and my database is single user. Is it possible to convert it in to a multi-user database? If it is possible, can you tell me how?
0
by: karthickmca6 | last post by:
how to convert database data to spread sheets 7.0,
4
by: nairshali | last post by:
how do i convert dbf database to oracle
1
by: kannanudt | last post by:
Sir, I had done one application in ms-access2007 using VBA code... now i am converting the database to exe format. At the time one error message raises,,, i.e, "Microsoft...
2
by: mostafijur | last post by:
Hello I need to convert database attributes into Records using PHP. For example My database attributes are like : C like structure: struct Info {
20
by: Joseppi4ever | last post by:
I have a database field called "report_type" that has three possible values (Initial / Follow-up / Final) selected via drop down box. I need to convert that selected value into a checked box on a...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.