Hi Everyone,
Hopefully someone will be able to offer a suggestion to this problem.
I have a multi user CMS running at work which I wrote. Aside from a few bugs everything has been going fine except for one annoying problem. Heres the info:
Windows XP workstations connecting to a windows 2003 server with roaming profiles for each user. Access 2003 SP2 on all machines.
Error: Record is deleted 3167
The wierd thing is users do not delete records from the table, each user has their own set of records acquired by a query when the form is opened so they dont EVER work on the same records. This error seems to mainly occur when the users are opening their reminders from a separate window or entering the main CMS form. Here's the code:
// start code sample
Private Sub Company_Name_Db lClick(Cancel As Integer)
Dim myVar
myVar = Me.Text16.Value
DoCmd.Close acForm, "main", acSaveYes
DoCmd.OpenForm "main", , , , , , myVar
End Sub
Heres the bit that it goes into when opened with args
Me.Filter = "([Postcode] = 'MK5 9DD' OR Imported=True) AND [username] = '" & User & "'"
Me.OrderBy = "Company Name"
Me.FilterOn = True
Me.OrderByOn = True
Me.Move 3200, 1
'If the form is being opened and the idnum is given by openArgs, open that record
If Forms!main.open Args <> "" Then
'Me.FilterOn = False
DoCmd.GoToContr ol "idnum"
DoCmd.FindRecor d Forms!main.open Args, , False
Else
//end code
Once one user gets this error everyone then gets similar problems or gets "Error excuting command." from the main switchboard. This always happens on all machines at the same time.
If we wait a few minutes and log back in it all works fine again!
It has been suggested that it could be a licencing issue with our server where we may need to buy more licences to ensure uninterrupted connections.
Aside from that I have no idea how this could be happening as I said users dont delete records from this table.
As an after thought the form load event for the main form fire up the reminders form which is a datasheet view like so:
Private Sub Form_Open(Cance l As Integer)
Me.RecordSource = "Select reminders.Compa nyID, reminders.[Company name], reminders.[Company Contact], reminders.Appoi nttime, Reminders.appoi ntdate FROM Reminders WHERE reminders.user ='" & User & "' and reminders.appoi ntdate<=#" & convertDate(For mat(Now(), "mm/dd/yyyy")) & "# ORDER BY Reminders.appoi ntdate ASC"
'Me.RecordSourc e = "Select * from reminders"
Me.Requery
Me.Move 1, 1, 3800, 8640
End Sub
Users DO right click->delete from this table but given the way it opens I cant see that causing a problem?
I did try doing a compact/repair this morning which SEEMED to fix the problem but it could have just fixed itself while I was doing it as it ranges from 2-15 minutes each time before we can log in!
Cheers
Marc
3 4637
Hi. Can't see anything of concern in your code - does not look like it could result in the delete error you mention. The server licensing issue might pose a problem - but as all users seem to get this error simultaneously it is more like the back-end database tables being disconnected by some kind of server communication problem.
With Server 2003 is it not more about the maximum number of simultaneous connections, not licensing? By default there is no maximum, but a limit may have been defined by whoever set up the server with IIS.
-Stewart
Stewart,
We've done two things which seem to have fixed the problem, or at least changed the error message:
1) Split the database properly, now all the tables exist on the server and the forms/queries/reports all sit on the client machines.
2) Purchased more users for the server.
Now i'm getting on occasion, "You cannot you find/replace here" or something along those lines.
When the error comes up again i'll get the number written down, its in the form_open event shown above and appears to happen when I do a findrecord.
Again this may be a problem to do with server connections, we've just changed the switch in the office over the weekend so again this may resolve the issue.
Once again thanks for your response!
As an after thought:
Someone else suggested this could be to do with data corruption in memo fields, the notes field in our database is a memo field but i've tried looping through all memo fields in the database and accessing them without an errors being generated.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Chumley the Walrus |
last post by:
IN my code behind .vb page for a delete records script (this also does
a deletion confirmation with a javascript popup, this gets called on
my front .aspx page with the datagrid), I'm not sure if he
row.delete() in my Delete_Row sub is correct because when deleting a
record from the dbase, it doesnot get deleted from the actual
database, even tho on the datagrid it does show that the record is
deleted:
'''''''''''''
|
by: MS |
last post by:
Access 97
I want to requery the data being displayed on a form, then I want to return
to the record I was in.
Why doesn't this code work?
Private Sub CmdRefsh_Click()
|
by: Susan Bricker |
last post by:
I have a command button on a form that is supposed to Delete the record
being displayed. The record is displayed one to a form. The form is
not a Pop-Up nor is it Modal. Tracing the btnDelete event routine shows
that AllowDeletions is TRUE.
When the Delete button is clicked (without TRACE ON), I get a 'beep',
the recordselector (vertical bar on left of form) gets dark in color,
but the record is not deleted. Also, there is no error...
|
by: Bryan |
last post by:
hello all...
im trying to add a record to an sql db on ms sql server 2000, using vb.net.
seems to be working.. except for one thing, one of the columns in the
database is a bit datatype, and though i get no syntax errors when
compiling, i get an error indicated that the data would be truncated. the
field is login_status.
ive tried in quotes and not, giving it an integer variable with the number 1
|
by: shorti |
last post by:
Here is an example of what I want to do (syntax might not be entirely
correct as this is just an example):
CREATE TABLE ParentA
(
name CHAR (6) NOT NULL;
address CHAR(64);
) IN CUSTOMER_TS INDEX IN CUSTOMER_TS;
CREATE TABLE Child1
| |
by: dmorand |
last post by:
Ok, I've looked at this for a while now and I'm just not seeing what the issue is. I have a page which is setup to delete records from a table. I'm getting a CF error when I submit.
CF Error:
Attribute validation error for tag cfoutput.
The value of the attribute query, which is currently "delSystem", is invalid.
The error occurred in C:\Inetpub\wwwroot\Security_Access\systemSubmit.cfm: line 25
23 :
|
by: magmike |
last post by:
Accidentally deleted a record. Anyway to get it back?
If not, I know the ID number - which is an autonumber field. Because
of the related data from other tables, would I be able to create a new
record and make its ID number, that of the deleted record?
Thanks!
magmike
|
by: Phil Stanton |
last post by:
I have a form based on a complex query (Lots of tables)
If I delete a record, everything appears to be OK. Get the message "Youa are
about to delete 1 record ....". I say yes. The record count goes down
correctly. Then if I do Records-->Remove Filter/Sort there are the deleted
records back as if they had never been deleted. Same thin exactly if I do
the operation on the form's recordsource query, so that eliminates anything
to do with...
|
by: MLH |
last post by:
Put 2 tables in a qbe grid & link 'em
so as to list only records in tblA that
have related records in tblB.
Run the query. HiLite a row. Press
delete key. A record is deleted. How
can you design the query so that you
KNOW in advance which table a
record will be deleted from.
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |