Code modification - VBA connection with Access DB

VBABEGINER

Well-known Member
Joined
Jun 15, 2011
Messages
1,284
Office Version
  1. 365
Platform
  1. Windows
Hi All,
The below connection code line using to send data in access DB.
Code:
cs = "Provider=Microsoft.ACE.OLEDB.12.0;
Data Source=\\inmum-i-fs4\group$\WNA Skyline\H&B\Timesheet_Data.accdb"

I want to modify this code for older version of access DB.
Can anyone please provide me code..
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
If you are using an older version of Excel as well, then use the Microsoft.Jet.4.0 provider. If not, all you need to is alter the file name of the database.
 
Upvote 0
Can you please provide in code...so i can test..and will revert you whether its working for me or not..
 
Upvote 0
What version of Excel are you using?
 
Upvote 0
In that case all you need to change is the database file name.
 
Upvote 0
Hi RoryA,
I really thankfull that you are kindly guiding things to me. But I really not get, need to change database file name OR alter the file name of database..

Can you pls tell me what exactly action need here
 
Upvote 0
If you are using an "older version of the Access DB" as you say, I assume the file is in mdb format, so the name will end in .mdb and not .accdb. If the file name is the same, you don't need to change anything.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top