Opening a MS Access table in Script

|
|
|
suelevene
|
Hi, Your website has been most helpful. I have made an alias for my access table in Paradox and put it's tables in the datamodel. I can run queries, but not open tables from the developer interface. I want to be able to get the table data in script. Below is a script that opens my table successfully. But, whenever I issue the db.open a Message box pops up to ask for a username and password (which my Access databse doesn't have). Is there a way to open the Access table without having that message box pop up? var db database tc tcursor endvar db.open("AliasName") tc.open("tableName",db) endMethod
Thanks, Sue
|
|
Posted 17 years ago (Thread Starter)
|
|
| About suelevene |
|
Approved member.
Member subscribes to this thread with a verified email.
|
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
|
|
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
|
Post ID #13486, 4 replies
Thread Started 5/6/2009 3:37:09 PM
View Counter=4278
Last Reply Posted 5/8/2009 12:45:44 PM)
|
|
|
|
Location=-- UNK
|
|
 |
|
|
|
AIBreveleri
|
Try this:
var db database pa dynarray [] string tc tcursor endvar pa["PASSWORD"] = "" db.open("AliasName",pa) tc.open("tableName",db) ...etc.
Logically, it seem you should have a pa["USERNAME"] = "" before the db.open() but I have never needed it.
See the online help on Database Type for more open() syntaxes.
-Al.
|
|
Posted 17 years ago
|
|
| About AIBreveleri |
|
Approved member.
Member subscribes to this thread with a verified email.
Post ID #13490 (Level 1.1)
Reply to 13486
Thread Started 5/7/2009 4:17:52 PM
Last Reply Posted 5/8/2009 11:05:49 AM)
|
|
|
|
Location=
|
|
 |
|
|
|
AIBreveleri
|
From the Paradox main menu, select Help | ObjectPAL Reference Topics Click the Index tab, enter "database type" Click on the "open" link, examine syntax 5 (Leave out the second optional "[ const ses Session, ]" argument)
To see what parameter names (besides "PASSWORD") may be used in the "[ const parms DynArray ]" argument, open the BDE configurator (BDECFG32.EXE) or the BDE administrator (BDEADMIN.EXE) and select the appropriate driver for the database.
-Al.
|
|
Posted 17 years ago
|
|
| About AIBreveleri |
|
Approved member.
Member subscribes to this thread with a verified email.
Post ID #13498 (Level 1.2)
Reply to 13486
Reply Posted 5/8/2009 11:31:12 AM
|
|
|
|
Location=
|
|
 |
|
|
|
suelevene
|
That worked great --- Thanks. The reference I have didn't have the extra parameter for the open method for a database. Is there an online up to date reference that I could peruse if I get stuck again? Or else I'll just ask here.... Thanks again! Sue
|
|
Posted 17 years ago (Thread Starter)
|
|
| About suelevene |
|
Approved member.
Member subscribes to this thread with a verified email.
|
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
|
|
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
|
Post ID #13495 (Level 1.3)
Reply to 13486
Reply Posted 5/7/2009 7:11:09 PM
|
|
|
|
Location=-- UNK
|
|
 |
Most Recent Post
|
|
|
suelevene
|
So, a wierd thing.... When I open the script for editing, and then run the script, it works great. If I double click it from the project viewer, it brings up the message box. Any ideas on how to get it to work from the project viewer? Thanks, Sue
|
|
Posted 17 years ago (Thread Starter)
|
|
| About suelevene |
|
Approved member.
Member subscribes to this thread with a verified email.
|
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
|
|
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
|
Post ID #13499 (Level 1.4)
Reply to 13486
Reply Posted 5/8/2009 12:44:14 PM
|
|
|
|
Location=-- UNK
|
|
Revive Thread!
Add a comment to revive this old thread and make this archived thread more useful.
| Thread #13486 Counter |
| 4278 |
|
Since 5/6/2009
|
|
|