Microsoft Visual Basic Professional Edition 6.0 for PC Logo

Related Topics:

Anonymous Posted on Feb 17, 2009

Write into excel format

Ive made an apllication that write my database into ms access.btw im using vb6 and ms access.below are my code that write db into ms access.but i want to change that into ms excel format.can anyone help please 
code :- 
Private Sub Command1_Click() BkpUpFileName = "" + Me.txtBkUpDest.Text + "\" + Me.txtBkpUpFName.Text + ".xls" Set FSO = CreateObject("Scripting.FileSystemObject") FSO.copyfile App.Path & "\Library.mdb", BkpUpFileName Me.Drive1.SetFocus ProgressBar1.Visible = True Timer1.Enabled = True 
End Sub 

  • Anonymous Feb 18, 2009

    i just copy that code from other project...;)
    do u mind sharing vb code that access db adn write into csv file, please...

  • Anonymous Feb 18, 2009

    mind if u share some code or website so that i can write into excel file??

×

1 Answer

Harisk Karameh

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

  • Expert 68 Answers
  • Posted on Feb 17, 2009
Harisk Karameh
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Governor:

An expert whose answer got voted for 20 times.

Hot-Shot:

An expert who has answered 20 questions.

Joined: Jan 10, 2009
Answers
68
Questions
0
Helped
25138
Points
169

Your code does not save in access format it just makes a copy of existing file. You need to open table by table and export data using csv format.
It can be done using access OLE to export, or
write some VB code to access the database tables via ODBC and save row data to csv file

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1helpful
1answer

Repair MS Access database without having program installed

Use Recovery Toolbox for Access developed for recovering data from corrupted Microsoft Access databases. The MS Access recovery tool is capable of repairing MDB and ACCDB database files.

For more: https://access.recoverytoolbox.com/
0helpful
1answer

Different between MS EXCEL & ACCESS

Hi. MS Excel is for spreadsheet. Very useful when creating accounting documents. MS Access is for database. Very useful when collecting data.

Please visit these links to learn more about the 2 applications:
http://www.blurtit.com/q373300.html

http://office.microsoft.com/en-us/access-help/using-access-or-excel-to-manage-your-data-HA001042918.aspx

http://www.thetechfaq.com/2010/03/14/microsoftaccess-and-excel-comparison/
3helpful
7answers

How can i repair a damaged access database

There are some reasons which may damage your MS access database such as virus infection, software crash, accidental shutdown of system, unrecognized format of database, corruption of storage media etc. These issues are easy to overcome by using third party software of access database repair.you can try Kernel Access Database Recovery Software one of the best software in Data Recovery

For information you can visit here ...http://www.accessrecoverytool.net


0helpful
1answer

Getting "Unspecified Error" While Opening an Excel File by using OLEDB Connection. I am Using Follwing Code to Open the Excel File. string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data...

Hello, you are probably using an incorrect connection string.

Usually you can use a datasource (such as Access Database) directly in an excel document. If that is what you are trying to accomplish here check out the following sites:
Plug into your data Connecting Excel to an Access database Office Blogs
OR:
Connect an Access database to your workbook

If you are writing software application, from within Visual Studio (depending on the version) go to the left-hand side bar to "Server Explorer" -> "Add Data Connection" -> Click on the "Change" button of the Data Source part and select the appropriate Access Data Source -> Click the "Advanced" button.

After that, you will see in the bottom textbox, the appropriate connection string for the JET.OLEDB Connection Provider.

This is shown in the image below:

fews-khtxegu4lrzhmquqt25la0x1-4-0.png Alternatively, you can find more information about your connectivity string in the link below:
https://www.connectionstrings.com/microsoft-jet-ole-db-4-0
For usage of an oledb connection object you can find info here --> https://msdn.microsoft.com/en-us/library/system.data.oledb.oledbconnection(v=vs.110).aspx
0helpful
1answer

What is the compatible database for visual basic 6.0?

Microsoft Access uses the Jet Engine. In VB 6, you can create a data connection using ODBC or OLE DB. Here is an example of OLE DB:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\YourAccessDB.mdb;User Id=;Password=;" Good luck
0helpful
1answer

Write into excel format

You can use ADO or SQL to open the excel file directly (provided it is constructed correctly, ie fields names) and write the data to it without Access.
That might be eaiser thatn converting it from Access to Excel, if that can even be done.
0helpful
2answers

Steps in saving file in excel to database

severals solution :
- save file as text separated by comma and use sqloader from oracle
- use function in excel to concatenate insert order : "insert into TABLE_NAME (field1,...,fieldn) values (A1,B1,...,??n);". Save file as text with sql extension. Connect against roacle db and execute file previously saved.
- use ODBC from MicroSoft
0helpful
1answer

Database synchronizer

You can see this website it will help full for your project. If you need any help means you can ask me..

http://www.academictutorials.com/
0helpful
1answer

Coding in ms word by using visual basic editor

Hello Kavita! If you want to get the most of VB then i advice that you install Microsoft visual studio...But just in case you want it for free you can find it here..
http://www.brothersoft.com/downloads/vb6.html
1helpful
3answers

Connecting html form to Ms-access data base

If, as I suspect, this is for a web form, then it effectively can't be done on a "proper" web server. This is because you cannot install MS Office on an MS server OS (e.g. Server 2003). You need to use MS SQL Server or MySQL instead. If this is for very limited use (i.e. only a few clients at a time), you can use XP running IIS but this is really not a good idea. The sedurity implications don't bear thinking about :) Linking a web page to Access can probably be done using ASP (never even thought of trying it - anyone else here know for sure?) If you are using a Linux web server then it's totally out of the question. Use Webmin or PHPMySQL to set up a MySQL database & PHP to code the linkage between the page and the DB. There are plenty of tools out there that will automate this for you, some of them Open Source and therefore free to acquire.
Not finding what you are looking for?

217 views

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

k24674

Level 3 Expert

8093 Answers

Brad Brown

Level 3 Expert

19187 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...