Open another database

wiro
Member Posts: 92
Hi again.
I want to open another database from navision (Ms. Access). I'm using Microsoft ActiveX Data Objects 2.8 Library. But i have problem with recordset. How to use it ?
Thank you.
I want to open another database from navision (Ms. Access). I'm using Microsoft ActiveX Data Objects 2.8 Library. But i have problem with recordset. How to use it ?
Thank you.
0
Comments
-
Hello.
Have you tried the search functionality?
Here is a start.
http://www.mibuso.com/forum/viewtopic.php?t=2976&highlight=recordset+access0 -
I have, maybe too many list so i didn't open all of them.
But thank you.0 -
Sorry, i ask again
I can't open the fields and i don't know if the connection is right.
Coz no error.
I use recordcount but its wrong count.
Thanx again.0 -
Hi again.
I have tried and it works.
IF ISCLEAR(ADOConnection) THEN
BEGIN
IF NOT CREATE(ADOConnection) THEN
ERROR('Can no create ADO Connection automation.');
ADOConnection.ConnectionString('provider=Microsoft.Jet.OLEDB.4.0');
ADOConnection.Open('c:\wiro\database-gwe.mdb');
IF ISCLEAR(adoRS) THEN
BEGIN
IF NOT CREATE(adoRS) THEN
ERROR('Can not create ADO Recordset automation.');
strSQL := 'select * from Employee';
RecordsAffected := '';
rsOption := 0;
adoRS := ADOConnection.Execute(strSQL,RecordsAffected,rsOption);
adoRS.MoveFirst;
REPEAT
ii := ii + 1;
VariantName := 'Name';
adoField := adoRS.Fields.Item(VariantName);
VariantValue := adoField.Value;
MESSAGE('%1\Name : %2\Index : %3',ii,adoField.Name,VariantValue);
adoRS.MoveNext;
UNTIL adoRS.EOF;
END;
END
ELSE
MESSAGE('Component is not clear.');0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions