Solved

Paradox Table on network

Posted on 2000-05-18
5
266 Views
Last Modified: 2010-04-06
I have a database program that run's on a Lan Network.

I use a paradox table.

My problem is,that i have a autoincrement field for ref number if I insert a record on terminal A and try to insert a record on terminal B, at the same time the Number is assigned to both records(This cannot be correct) which means if A terminal starts to insert at the same time as B terminal I would expext different Ref Numbers.
please help how to solve this problem
0
Comment
Question by:sivatagiherceg
5 Comments
 
LVL 2

Accepted Solution

by:
aubs earned 15 total points
Comment Utility
You need use BDE Administrator to set a path to a net file.

Start BDE Admin
Click on the Configuration Tab
Click Drivers>Native>Paradox

In the Net Dir Type the path to a network directory (must not be the same directory as the DB tables)

Close and save any changes.


0
 
LVL 9

Expert Comment

by:ITugay
Comment Utility
It seems as you need to get value of autoinc field in last inserted record. Add user_id or station_id field to your table and fill before insert it then:

select max(autoinc_field) where user_id=:user_id

-----
Igor.
0
 
LVL 2

Expert Comment

by:IPCH
Comment Utility
I sugest you not to use autoincremental field in the network with Paradox. I have common problem and I sove it with additional table that collects all my counters.
Check the Aubs coment to, it's very important when you work on network with Paradox.
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
hi sivatagiherceg,

buy this q (worth 150 points)

http://www1.experts-exchange.com/bin/Q.10341336

meikl ;-)
0
 
LVL 1

Expert Comment

by:flooder
Comment Utility
aubs answer will work fine.
If your net dircetory in the BDE is set the same for all users accross the network then it will work fine.
I have autoinc fields in my databases and i have encounterd no problems while users work similtaneously or even when users work with master detail tables.
Here is a article that you will also find very handy when working with paradox
www.o2a.com/tu.htm
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now