473,405 Members | 2,349 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,405 software developers and data experts.

problems adding/ updating on client pc

10
Hi, I have tested my databse and everthing works fine but then have given it to a customer and the following part of the code does not seems to be updating as required.

Set rs = db.OpenRecordset("LTOT_second_oxygen2", dbOpenDynaset)
rs.FindFirst "[HospitalNumber] = '" & Me![general_info.HospitalNumber] & "'"
If rs.NoMatch Then
rs.AddNew
rs![HospitalNumber] = Me![general_info.HospitalNumber]
rs.Update
End If

Any ideas why this could be-I am stumped!!!?????

Could this have anything to do with access permissions set by an IT department? At the moment i havent set any form of workgroups, permissions etc as its only a beta trial database with one client.
Jun 26 '07 #1
10 1384
puppydogbuddy
1,923 Expert 1GB
Hi, I have tested my databse and everthing works fine but then have given it to a customer and the following part of the code does not seems to be updating as required.

Set rs = db.OpenRecordset("LTOT_second_oxygen2", dbOpenDynaset)
rs.FindFirst "[HospitalNumber] = '" & Me![general_info.HospitalNumber] & "'"
If rs.NoMatch Then
rs.AddNew
rs![HospitalNumber] = Me![general_info.HospitalNumber]
rs.Update
End If

Any ideas why this could be-I am stumped!!!?????

Could this have anything to do with access permissions set by an IT department? At the moment i havent set any form of workgroups, permissions etc as its only a beta trial database with one client.
More likely has to do with missing vb library references. Go to vb editor, select Tools>References.....Any show as "Missing"?
Jun 26 '07 #2
tan
10
no all the references are there.i have tested it on 5 pc's (including one totally clean) and it works fine in both a full and runtime version-its just this client.im not sure if its something to do with opening a recordset in code? permissions with this?
Jun 26 '07 #3
puppydogbuddy
1,923 Expert 1GB
no all the references are there.i have tested it on 5 pc's (including one totally clean) and it works fine in both a full and runtime version-its just this client.im not sure if its something to do with opening a recordset in code? permissions with this?
You need to provide more info ......your version of Access, your operating environment (Windows XP, etc.). Is your application split, etc.

1. In your recordset code, you did not post your declarations. Did you declare (dim) the recordset as a DAO/ADO Recordset? Are vb library references set for DAO, ADO?

2. Does client machine have same version of Access?

3. Are any ActiveX controls being used in the application that have to be registered with Windows Regsvr32.

4. Has MDW workgroup security file been properly set up?
Jun 26 '07 #4
tan
10
i am using access 2000 on xp operating system-this is also what the client has.i have also tested on a vista op and that was fine.

yes i have included:

Dim db As DAO.Database
Dim rs As DAO.Recordset

I do not use any activex controls, but i have not set any workgoup security files (could this be where my problem is?)
Jun 27 '07 #5
puppydogbuddy
1,923 Expert 1GB
i am using access 2000 on xp operating system-this is also what the client has.i have also tested on a vista op and that was fine.

yes i have included:

Dim db As DAO.Database
Dim rs As DAO.Recordset

I do not use any activex controls, but i have not set any workgoup security files (could this be where my problem is?)
The system MDW was probably set up for you during the install. You should be able to verify that the System.MDW file exists (refer to article in link). The update failure you originally alluded to seems more like it could be related to not granting the proper permissions to the shared folder where the mdb/mde file has been placed.

Using MyComputer on the Windows Desktop, Right-click on the shared folder where you have the mdb/mde installed and select Sharing And Security. The Properties dialog box for the folder should display four tabs: General, Sharing, Web Sharing, and Customize. Select the Sharing tab, and it should be divided into two sections: Local Sharing, and Network Sharing And Security. Make sure the Network Sharing is set for the shared folder, and that local sharing is turned off.

2. Log on as an administrative user, right-click the shared folder in question, choose Properties, click Security, click the Advanced button, and click the Effective Permissions tab. Select a user or group to view the effective permissions for that user or group on the specific file or folder. Are they correct?

See this link for an excellent reference for security .
http://www.uky.edu/~dsianita/622/access_security.pdf
Jun 27 '07 #6
tan
10
how come they can update information through the data entry form then and note through code? i could not find the effective user permissions from the advanced tab
Jun 27 '07 #7
puppydogbuddy
1,923 Expert 1GB
how come they can update information through the data entry form then and note through code? i could not find the effective user permissions from the advanced tab

Good question. On one hand.....since no (application) user level security has been set up, everyone has full access to the database....on the other hand, if full permissions have not been granted to users of the shared folder (via Windows security), only a windows system administrator would have add/update/delete privileges to shared folder...and just because you can enter info on the forms doesn't mean the underlying tables were updated.
Jun 27 '07 #8
tan
10
thats the bdd thing though, any data entered via the data entry form is added to the tables, just not the data that should be updated via the code
Jun 27 '07 #9
tan
10
hey, thanks to everyone for all their help! the problem is sorted.the database had been saved to all users/application data, so that when the database was opened by a limited user updates and additions via open recordset were not allowed. i solved this by simply moving the folder to the C:/ drive - phew
Jun 27 '07 #10
puppydogbuddy
1,923 Expert 1GB
hey, thanks to everyone for all their help! the problem is sorted.the database had been saved to all users/application data, so that when the database was opened by a limited user updates and additions via open recordset were not allowed. i solved this by simply moving the folder to the C:/ drive - phew
Phew is right...LOL!! Glad you got it resolved.
Jun 27 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ted Byers | last post by:
This is quite frustrating! In the documents, and in the newsgroups, I see simple instructions like the following: =============================================== ==========Beginning of Ray's...
2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
9
by: mcbill20 | last post by:
Hello all. I just installed Oracle 10g developer tools on a machine running XP Pro and Office XP. Before this I had just the Oracle 9 client installed. I the previous configuration, I was able to...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
1
by: Carl Gilbert | last post by:
Hi I would like to know that best way of adding data to the session state object. I have a page with a series of links such as: designs.aspx?categoryID=1 designs.aspx?categoryID=2 When I...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: gn | last post by:
I have a form that is used for adding, updating and deleting records in a table, everything works fine except that one of the fields uses a list box, this works fine for adding a new record but...
5
by: Ian Mackenzie | last post by:
Hey Guys I have just upgraded from V8,2 to 9.1 Express C and have hit a couple of problems. Here we go: I have created an app in delphi, which connects with the following connection...
12
lotus18
by: lotus18 | last post by:
Hi everyone I have a little problem in updating a record. I know how add a new record and check if the inputted new data is existing or not as what they have discussed in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.