Hi Can you please help, I am new to this so please be gentle!
I have written the following code using VB6 and Access2000 and I recieve a Run-Time error '3343' unrecognized format'S:\RdiIntranet\RDiIntranet.mdb' , when running the code. - Public rstSuppliers As DAO.Recordset
-
Public dbSuppliers As DAO.Database
-
-
Private Sub Form_Load()
-
' ******************************** RDi Suppliers *********************************
-
Set dbSuppliers = OpenDatabase("S:\RdiIntranet\RdiIntranet.mdb")
-
Set rstSuppliers = dbSuppliers.OpenRecordset("Select * From Suppliers order by ACCOUNT_REF")
-
rstSuppliers.MoveFirst
-
End Sub
I think it's because i am using Access 2000, can you please help.
Thanks
Steve
7 1787
Hi Can you please help, I am new to this so please be gentle!
I have written the following code useing VB6 and Access2000 and i recieve a Run-Time error '3343' unrecognized format'S:\RdiIntranet\RDiIntranet.mdb' , when running the code. -
-
Public rstSuppliers As DAO.Recordset
-
Public dbSuppliers As DAO.Database
-
-
Private Sub Form_Load()
-
' ******************************** RDi Suppliers *********************************
-
Set dbSuppliers = OpenDatabase("S:\RdiIntranet\RdiIntranet.mdb")
-
Set rstSuppliers = dbSuppliers.OpenRecordset("Select * From Suppliers order by ACCOUNT_REF")
-
rstSuppliers.MoveFirst
-
End Sub
-
-
I think it's because i am using Access 2000, can you please help.
Thanks
Steve
Have you tried using Ado, callsupport1!
I am going to see about an example in DAO. I am almost certain something like this is possible through Ado.
I also run two 2000 I don't seem to have any problems.
In a bit!
I think we can work with this one, I have it linked to one of my databases on C, fired right away, pretty easy code. You'll need to do all the work, a little digging you'll figure it out:
Add this in Form_Load -
-
Private Sub Form_Load()
-
Dim my_database As Database 'dimension database as database
-
Dim my_record As Recordset
-
Dim test As String
-
Text1(0).Text = "123456*" my user ids all start at 123456
-
test = Text1(0).Text
-
Set my_database = OpenDatabase("C:\Data_Central.mdb") 'this function will open the database using the link to the access database (besure database is closed)
-
Set my_record = my_database.OpenRecordset("select * from Employee where UserID like '" & Text1(0).Text & "'") 'search by UserID, only if data already exist
-
Do While Not my_record.EOF 'this function will keep searching for fields matching each textbox
-
-
Text1(0).Text = my_record.Fields("UserID")
-
Text1(1).Text = my_record.Fields("EmployeeID")
-
Text1(2).Text = my_record.Fields("TodayDate")
-
-
'... and so on
-
-
my_record.MoveNext
-
Loop
-
my_database.Close
-
End Sub
-
-
It's a little clumsy but it should get you started. It is also in DAO, you'll need to reference Microsoft DAO 3.6 Object Library.
I would also load Adodc control to page through the data loading in your textboxes, 1234567, 1234568, 1234569 and so on.
Let us know how you make out...
...unrecognized format'S:\RdiIntranet\RDiIntranet.mdb'
I wonder whether this might indicate that the MDB file was created by either an older or a newer version of Access than what your system can handle.
Hi Can you please help, I am new to this so please be gentle!
I have written the following code using VB6 and Access2000 and I recieve a Run-Time error '3343' unrecognized format'S:\RdiIntranet\RDiIntranet.mdb' , when running the code. - Public rstSuppliers As DAO.Recordset
-
Public dbSuppliers As DAO.Database
-
-
Private Sub Form_Load()
-
' ******************************** RDi Suppliers *********************************
-
Set dbSuppliers = OpenDatabase("S:\RdiIntranet\RdiIntranet.mdb")
-
Set rstSuppliers = dbSuppliers.OpenRecordset("Select * From Suppliers order by ACCOUNT_REF")
-
rstSuppliers.MoveFirst
-
End Sub
I think it's because i am using Access 2000, can you please help.
Thanks
Steve
Hi Callsupport1....
Yeah... i also encountered that problem when am starting on VB...
Your idea is correct... its because of the MS Access version.
You dont have to do anything more on your given codes... all you have to do is to changed your referenced:
If you are referencing to Microsoft DAO 3.5 Object library
changed to: Microsoft DAO 3.6 Object library
I hope this one will works on you....
(besides maybe you dont need control like datacontrol for this... because you
might have included it to your given source code if it is so...)
Good Luck!
Hi Callsupport1....
Yeah... i also encountered that problem when am starting on VB...
Your idea is correct... its because of the MS Access version.
You dont have to do anything more on your given codes... all you have to do is to changed your referenced:
If you are referencing to Microsoft DAO 3.5 Object library
changed to: Microsoft DAO 3.6 Object library
I hope this one will works on you....
(besides maybe you dont need control like datacontrol for this... because you
might have included it to your given source code if it is so...)
Good Luck!
Hi Thanks for the reply, I am new to VB6 and am not sure how to reference Microsoft DAO 3.5 Object library in my code.
Regards
Steve
Hi Thanks for the reply, I am new to VB6 and am not sure how to reference Microsoft DAO 3.5 Object library in my code.
Pull down Project menu, select References, then hit the checkbox next to the desired reference, and click OK.
Hi Killer,
In the below VB code I want to input "password" in encripted format using InputBox, please help me in this regard - Dim Pwd As String = String.Empty
-
Dim Obj As Object
-
Pwd = InputBox("Enter the password", "Security")
-
If Pwd = "Password" Then
-
Dim oSettings As New Settings
-
oSettings.ShowDialog()
-
LoadXml()
-
ElseIf Pwd = "" Then
-
Else
-
MessageCall("Inavalid password", MessageBoxButtons.OK)
-
End If
Sign in to post your reply or Sign up for a free account.
Similar topics
by: chicha |
last post by:
Hey people,
I have to convert MS Access 2000 database into mysql database, the whole
thing being part of this project I'm doing for one of my faculty
classes. My professor somehow presumed I...
|
by: Scott |
last post by:
Any help would be grateful :-)
Problem:
When I test my installation of Access 2000 MDE, I get the following
error: "Unrecognised Format".. This means that Access 97 cannot read
Access 2000. ...
|
by: Pat |
last post by:
We have a database with Access 97 as the front-end and SQL7 as the
back end. It is on a network server and accessed by joining a MS
Access Workgroup.
We are trying to add a new user and have...
|
by: Scott |
last post by:
Hi,
If we want to compile an Access 2002 database and distribute it to
others, will the compiled software run on any PC, like Windows 98,
Windows 2000, etc.
Also, you don't have to have...
|
by: Serious_Practitioner |
last post by:
....or lack thereof...
I use Access 2000 which I own as part of Office 2000 Professional. I've had
enough trouble with glitches to ask if these are common occurrences -
1. Sometimes the "Help"...
|
by: Jeff |
last post by:
Does anyone know of any potential problems running a 2000 database with
2003?
Also, what about installing all other Office products as 2003 versions but
leaving Access as 2002 running a 2000...
|
by: ship |
last post by:
Hi
We need some advice: We are thinking of upgrading our Access database
from Access 2000 to Access 2004.
How stable is MS Office 2003? (particularly Access 2003).
We are just a small...
|
by: com |
last post by:
MS Access 2000 Password Recoverer 4.2 Screenshot - Soft30.com
MS Access 2000 Password Recoverer will display the password to a MS
Access
database (*.mdb). This program works for MS Access files...
|
by: Mo |
last post by:
Hello all,
I'm trying to set up an access 2000 .adp project connecting to a SQL
server 2005 database. I can set up the connection ok, but once I have
completed the setup process, I get the...
|
by: NEWSGROUPS |
last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003.
The new environment consists of Office/Access 2003 and Outlook 2003. When
converting the back ends I have no problems....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
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: 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,...
|
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: 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...
|
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,...
| |