I am getting an erro on line 11, OpenDatabase(Name As String, [Options], [ReadOnly], [Connect]) I can leave the Options field blank, and it errors saying that the password is invalid, I am 100% certian that the password is correct, and if I leave it blank it prompts then errors. I have read countless articles, and reregistered the DLL's and even reinstalled office, to no avail. Anyone with any ideas that would be excellent. - Public Function fnReadDBTables(FilePath As String, Pword As String, SavePath As String)
-
Dim dbname As String
-
Dim rst2 As DAO.Recordset
-
Dim DbRead As DAO.Database
-
Dim mySQL1 As DAO.Recordset
-
Dim filetemp1 As Integer 'start of file string
-
Dim filetemp2 As Integer 'end of file string
-
-
dbname = Forms![main]![dbNameComboBox1]
-
-
Set DbRead = DAO.OpenDatabase(FilePath, False, False, Pword)
-
Set rst2 = db.OpenRecordset("tblDatabaseTables", dbOpenDynaset)
-
Set mySQL1 = DbRead.OpenRecordset(("SELECT MSysObjects.Name, MSysObjects.Database, _
-
MSysObjects.Connect, MSysObjects.Type _
-
FROM MSysObjects WHERE (((MSysObjects.Name) Not Like ('MSys*') And _
-
(MSysObjects.Name) Not Like ('~TMPCLP*')) AND _
-
((MSysObjects.Type)=1 Or (MSysObjects.Type)=6)) ORDER BY MSysObjects.Name;"))
-
Do Until mySQL1.EOF
-
rst2.AddNew
-
rst2("DatabaseName") = dbname
-
rst2("TableName") = mySQL1!Name
-
rst2("Database") = mySQL1!Database
-
If Not mySQL1!Database = "" Then
-
filetemp1 = InStrRev(mySQL1!Database, "\")
-
filetemp2 = InStrRev(mySQL1!Database, ".")
-
Else
-
filetemp1 = 1
-
filetemp2 = 0
-
-
-
End If
-
If filetemp2 > filetemp1 Then
-
rst2("DatabaseName2") = Mid(mySQL1!Database, _
-
(filetemp1 + 1), ((filetemp2 + 3) - filetemp1))
-
Else
-
rst2("DatabaseName2") = ""
-
End If
-
rst2("Connect") = mySQL1!Connect
-
rst2("Type") = mySQL1!Type
-
rst2.Update
-
mySQL1.MoveNext
-
Loop
-
Set rst2 = Nothing
-
DbRead.Close
-
-
End Function
1 1960
I got it to work, I added "MS Access;PWD=" & Pword is valid to line 11.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Mister_d |
last post by:
When deploying a solution using the Access 2003 runtime engine, do you have
to use the packaging wizard that comes with the Access 2003 Developer
Extentions, or can you use other packaging software...
|
by: Lauren Wilson |
last post by:
Ok I have searched the MS website for info on this. I am totally
confused.
If I want to deploy an Access 2003 app and allow my users to run it
using Access 2003 Runtime, where do I get the...
|
by: Barb |
last post by:
Hello again,
I had posted over the past couple of days regarding a connection issue
I was having to my production database from an Access project. I
sorted that out by using integrated Windows...
|
by: russ |
last post by:
I installed VS.NET, Office Access 2003 Developer Extensions, and Access
2003 Developer Extensions, and I still can't find where the Access 2003
runtime install file is at. Am I missing something?
|
by: Wayne |
last post by:
I am looking at installing an Access 2003 application on some machines
that don't have any version of Access previously installed. After
reading lots of posts on this group and elsewhere I assume...
|
by: Lauren Wilson |
last post by:
I have a desperate short term need for a way to install Access 2003
runtime on client computers. I have the proper license to do so but I
cannot seem to find the files to do it like we did with...
|
by: Lauren Wilson |
last post by:
I have a desperate short term need for a way to install Access 2003
runtime on client computers. I have the proper license to do so but I
cannot seem to find the files to do it like we did with...
|
by: Lauren Wilson |
last post by:
What is going on with this?
We created an installer for Access 2003 Runtime using the P & D Wizard
from Access 2003 Dev Extensions. It appeared to be fine but on some
computers it simply hangs...
|
by: Yelena Varshal via AccessMonster.com |
last post by:
Hello
We have a shortcut for our MS ACCESS application that uses a /Runtime switch
because we may have some users that use Runtime. The application worked fine
in Access 2000 and was tested with...
|
by: cyberdwarf |
last post by:
Aaargh!
XP Pro + Access 2002 for development.
Setup a 3rd party MDE which needed the Access 2003 runtime installed.
Tried to uninstall the Access 2003 runtime, but it won't budge :-((
Now I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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: 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...
|
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,...
|
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...
| | |