473,383 Members | 1,837 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Access over a network HELP NEEDED

Hello all,
A big part of my life I have been working with databases (as a non
professional) on a local machine. Apart from a small problem now and then,
for which I find the solution myself, or some of you guys provide me with
the solution, all goes well. But now, for the first time I am faced with the
porblem that I have to run Access over a network, and my program, which
worked so fine on a single machine does not function .... Here's the prob :
I have a bound form , and one of the controls is bound to a numeric field on
a table. On opening the form, the program goes to the last record entered,
gets this value and increments it by 1, then the control gets updated. Now,
I tried this out with another user. He opens the form, all goes well, then I
open the form on my machine. When I open it, the other user gets the message
that Access was not (or will not be) able to save the record, since a
primary key violation was encountered ..... Which, coming to think of it, is
normal, because the other user's fomr is still open ....
But, me not being used to networking .... how do I solve this problem ?
Any help appreciated ....
Thanks
Ronny
Nov 12 '05 #1
2 4541
"Ronny sigo" <ro*********@toegrefnet7.be> wrote in message
news:3f**********************@feed0.news.be.easyne t.net...
Hello all,
A big part of my life I have been working with databases (as a non
professional) on a local machine. Apart from a small problem now and then, for which I find the solution myself, or some of you guys provide me with
the solution, all goes well. But now, for the first time I am faced with the porblem that I have to run Access over a network, and my program, which
worked so fine on a single machine does not function .... Here's the prob : I have a bound form , and one of the controls is bound to a numeric field on a table. On opening the form, the program goes to the last record entered, gets this value and increments it by 1, then the control gets updated. Now, I tried this out with another user. He opens the form, all goes well, then I open the form on my machine. When I open it, the other user gets the message that Access was not (or will not be) able to save the record, since a
primary key violation was encountered ..... Which, coming to think of it, is normal, because the other user's fomr is still open ....
But, me not being used to networking .... how do I solve this problem ?


You need to use a different event to assign the new number. I use
BeforeUpdate because this allows for only a very tiny time interval between
the calculation of the next number and the saving of the record. That is
crucial if you need multiple users inserting records simultaneously.

The only drawback to BeforeUpdate is that is can fire multiple times in the
life of a record so you need to put your number assignment inside an
If-Then block so it only assigns numbers to records that don't already have
them.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2
"Ronny sigo" wrote
. . . Access over a network, and my
program, which worked so fine on a
single machine does not function


Just as a start, download and view my presentation on Access in a Multiuser
Environment from http://appdevissues.tripod.com. There's also good
information on multiuser Access issues at MVP Tony Toews' site,
http://www.granite.ab.ca/accsmstr.htm.

You don't make clear what your use of the incremented value will be -- that
is, whether it is a value that needs to be handled by humans, and thus
should be in sequence without gaps. If its use, or primary use, is simply
for internal identification of your data within the database, using an
AutoNumber should avoid the problem you're having.

It also isn't clear whether both users are logging in to the same copy of
the front-end or monolithic database. They should not be, although this
isn't the cause of the problem you are experiencing. It might be the cause
of other problems, later, though.

Clarify your needs for the value you are incrementing, and we'll be better
able to comment and suggest.

Larry Linson
Microsoft Access MVP
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: elieli_132 | last post by:
Hi, My problem is the following: Made changes to code in form and closed the form. Now unable to open / design the form. - Tried copying and pasting - the new one does not open /display....
47
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...
92
by: Jeffrey P via AccessMonster.com | last post by:
Our IT guys are on a vendetta against MS Access (and Lotus Notes but they've won that fight). What I can't understand is, what's the problem? Why does IT hate MS Access so much. I have tried...
1
by: Microsoft News | last post by:
I have a web server sitting on computer 1, (QA1). Out on the network on my main server I have a folder with a zip file in it. All I want is for the web services that are on the web server to pick...
4
by: Bruce | last post by:
I am developing an ASP.NET web service application. It works fine on my WinXP Prof development machine. But when I send it to a Windows Server 2003 system I get the following error (attached...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
0
by: Anonymity25 | last post by:
Hello, I am continuing to update the front-end of a split DB. I update a local copy of the FE which is tied to a standalone copy of the BE. I am trying to automate the 'go-live' procedure for...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
7
by: Patrick.O.Ige | last post by:
I moved web apps to Win2003. I have given read/write access rights to machinename/IIS_WPG but still getting the error "Access to the path "c:\inetpub\wwwroot\myApp" is denied. " Also gave...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.