-Collapse +Expand
Paradox
Search Paradox Group:

Advanced
Paradox To/From
To/FromCODEGuides
Paradox Store
PRESTWOODSTORE

Prestwood eMagazine

June Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyCorel Paradox / ObjectPAL Coding BoardParadox to/from Other Data Sources Topic   Print This     

Opening a MS Access table in Script

Opening a MS Access table in Script in Paradox to/from Other Data Sources topic (part of our Corel Paradox / ObjectPAL Coding group).

Quick Search: Opening   Opening MS   Opening MS Access   table Script  
suelevene
-- UNK

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)
Comment Quote
About suelevene
Visit Profile
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 
Joined=17 years ago   MB Posts=3  
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
Comment Quote
About AIBreveleri
Visit Profile
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= 
Joined=25 years ago   MB Posts=286   KB Comments=8  
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
Comment Quote
About AIBreveleri
Visit Profile
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= 
Joined=25 years ago   MB Posts=286   KB Comments=8  
suelevene
-- UNK

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)
Comment Quote
About suelevene
Visit Profile
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 
Joined=17 years ago   MB Posts=3  
Most Recent Post
suelevene
-- UNK

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)
Comment Quote
About suelevene
Visit Profile
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 
Joined=17 years ago   MB Posts=3  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1141A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #13486 Counter
4278
Since 5/6/2009
Go ahead!   Use Us! Call: 916-726-5675  Or visit our new sales site: 
www.prestwood.com


©1995-2026 Prestwood IT Solutions.   [Security & Privacy]