How To Create A Message Box Indicating Record Is Locked?

May 1, 2006

I have done some serious searching and have discovered that many others have posted this question, but I couldn't find any satisfactory answers.

I have a FE/BE Access 2000 database in a multi-user environment. I have my default record locking set to "No Locks" (optimistic), but for unknown reasons, some records still lock. The records are viewed via a form, which is also set to "No Locks." We only have about 20 users, so it is rare that two people actually have the same record open at the same time. It seems to be that whole groups of records lock sometimes, despite the fact that I'm using optimistic record locking. Usually if you wait 15-20 minutes it is unlocked. If someone can explain this I would be overjoyed.

But, I can deal with the record locking. The problem is that users have no idea why they can't update a record and no matter how many times I tell them to wait 15 minutes they still come crying to me every time. So, I want to make a message box pop up when they try to update the record that states something like this: "The record is currently locked. Please try again in 15-20 minutes."

If someone could offer some code options and explain where it needs to go (form load, open, etc.) I would be eternally grateful.

Thank you!

View Replies


ADVERTISEMENT

Custom Error Message On Create New Record

Sep 28, 2004

I have created a command button through the wizard that is basically:
DoCmd.GoToRecord , , acNewRec

Well, it puts all this code in the event:

Private Sub NewVerification_Click()
On Error GoTo Err_NewVerification_Click
DoCmd.GoToRecord , , acNewRec
InboundQuestions!Page1.SetFocus
VerificationNo.SetFocus
Exit_NewVerification_Click:
Exit Sub
Err_NewVerification_Click:
MsgBox Err.Description
Resume Exit_NewVerification_Click

End Sub

Well, my PK field is one users enter in manually (please don't ask why). What I need is something that checks to see if the number in that field is a duplicate key, so I can tell users via msgbox "Duplicate Number, try again". Right now, it's not that descriptive, it says "You can't go to the specified record". I guess all i need is an If statment, but I don't know the code that checks to see if [field1]'s value has already been used in my table. Any ideas?

View 4 Replies View Related

Show Who Has A Record Locked??

Sep 28, 2005

First of all hi everyone, im lookin for some advice

i have database setup with record level locking for multiple users (havent decided weather its should be optimstic or pesimistic yet)

however either way i set this there is no idication that the record is opened/locked by another user is there an easy way to say pop up a msgbox when a user enters a record to say this is in use/locked and show who by using the username?

Thanks
:)

View 1 Replies View Related

Record Locked In Multiuser Environment

Jun 3, 2006

hi,
am trying to create an application for a company that has a small call-center (strength 20). the db is in the central server and each caller sits with frontend on their computer.
the central DB is shared on the network which these 20 PCs are accessing.

The frontend: 1 Form only which is based on a query that displays records.
Form Lock property: Edited Records
Query Property: Edited Records

As the telecaller starts calling the customer looking at the records, they are not able to edit certain records as the respective record is locked by MS-Access when am sure that no other telecaller has opened the particular record.

Any help is appreciated.

Prodigy.

View 3 Replies View Related

Trouble With Code When Record Is Locked

May 8, 2005

I'm going live with my DB tomorrow morning. I wanted to to Edited Records for my lock type but ran into a problem, this weekend when I took it to our office and had it on multiple computers for the first time. (I've been designing at my house, in my spare time (right), so I couldn't test for the problem I have now.) When a user is on a record and I open the same record up on another computer it locks ok and shows in the Record Selector that it's locked but if I begin to tab through the form I have at least one code that pukes. In my LastName field, in the On Exit event, I have the following code:
If Not (IsNull(Me.LastName)) Then
Me.LastName = StrConv(Me.LastName, vbProperCase)
End If
As I try to Exit this field, only when the record is locked, the code pukes. Can some one lend a hand and give some advise on how to prevent this?

Thanks ahead of time,
Shane

View 2 Replies View Related

Multiple User Receiving Record Locked

Oct 10, 2006

Hello,

I have a database we use to enter new account numbers and several other atribbutes about the account and it is split into a FE/BE with the BE in a shared folder. I have the open database using record-level locking checked but it seems to me that the database is opening up with page-level locking. Multiple users will receive a message that the current record is locked and I am sure that they are all not updating the same record. Does anybody have any idea's of what I can do? If nothing else I am going to have to recreate my form as an unbound form and see how that goes.

View 14 Replies View Related

How To Create A Message Box With Bold Text

Jul 11, 2012

I want to create a message box with bold text

Ext:

MsgBox "1. Hello!" & vbCrLf & "2. How are you?" & vbCrLf & "3. See you again!", vbInformation, "Message"

Result:

1. Hello (this line is bold)
2. How are you?
3. See you again

View 5 Replies View Related

General :: Create New Mail Message From Table?

Jul 24, 2013

access where in on clicking a button on an access form, I can insert Field A, B & C (all containing email ID's) in to a new mail message in outlook. Similarly I have a subject field which needs to go into the new message as subject.

I enter data into the table using the form where the button needs to exist.

View 1 Replies View Related

Modules & VBA :: Create Error Message On Form

Nov 28, 2014

I'm creating a DB that includes a form that "Customers" will fill out. The form (CustomerForm) has text boxs that must be completed. I'm trying to figure out how to make sure all text boxes are filled out. I have already created a Input Mask and selected Required in the "Customer" Table. There is also a Username text box I would like to have validated that is is not already being used and two password text boxes I would like to have validate against one another to ensure it was created correctly. Once all text boxes are properly filled out I would like the Button to Save customer data, close CustomerForm and Open ShoppingCart. This is the code I have created:

Code:
Option Compare Database
Private Sub Log_In_Click()
If IsNull(Me.CustomerFName) Then
MsgBox "Please Enter First Name", vbInformation, "First Name Required"
Me.CustomerLName.SetFocus

[code]...

View 7 Replies View Related

Create 3 Custom Caption Buttons For A Message Box?

Nov 18, 2013

Is it possible to create 3 custom caption buttons for a message box?

I know I could do this as a form, but would like to know if it can be done in vba using msgbox...

View 2 Replies View Related

Forms :: Condition A Field To Locked On 1 Record Of Continuous Form Subfile

Jun 1, 2015

Access 2002 . Can I condition a field to 'locked' on just one record of a continuous form subfile, based on the contents of a 2nd field in same record?

View 14 Replies View Related

How To Create My Own Message If A User Enter A Value Not Match With The Data Type?

Jul 26, 2006

In MS Access form, how can I create my own message if the user enter a value that not match with the data type of a field in underlying table? Thanks a lot!

View 3 Replies View Related

Reports :: Create Message When No Records Found From A Form To Query

Jul 28, 2014

How to create a message when no records are found from a form to a query in the report.

Example; Donations From Great Britain have no records

View 4 Replies View Related

Create Error Message For Form Search Results Being Null

Sep 21, 2012

I have a form and when it's opened you get 3 different search questions to answer or leave blank. My question is.... If a search parameter is entered but no results are found to match it, how do I create an error message telling the requestor "No Data Found"?

View 7 Replies View Related

Forms :: How To Create A Form That Can Edit Or Create A Record

May 13, 2014

I am trying to create a form to enter data in a table. I would like to make it pull in info from a switchboard. If the record already exists I would like it to find it and allow me to edit the info. If the record doesn't exist I would like to be able to add a new record with the data input. What is the best way to accomplish this?

View 1 Replies View Related

Forms :: Create A Message Box To Flash On Screen To Tell User That Update Code Is Running

Mar 6, 2014

I need to create a message box or a form or something to flash on the screen to tell the user that a piece of "Update" code is running. the update code will be updated reports from marketing returns, but the 3 branches who use the information are separate so I am creating an update form to download and update the table.

The code for the update is already working, but can take a while, so I thought a message or splash screen would be useful as the update runs on start up.

It would have another use, I have a report which is made mainly of calculated fields on an onPrint event and also takes a while to work it out, so a similar screen would be more useful than my current spinning circle and blank screen.

View 1 Replies View Related

If No Record....message

Jan 11, 2007

Friends, as I have not received a response to a previous question, I am again posting my problem trying to bee more clear.

I have developed a search form with a txtbox and a cmdbutton to open a form based on a query.

The cmdbutton opens a form if the record is found. Can anyone help me with VBA to display a No Record Found message?

THis is what I have on the OnClick Event of the button:

If IsNull(Me.txtsearch) Then
DoCmd.CancelEvent
Else
DoCmd.OpenForm "myform", acNormal, "myquery", "", , acNormal
DoCmd.Echo True, ""
End If

Note that the query behind the form has following in the criteria in the LName field:
like [forms]![welcome]![txtsearch]

Thank you.

View 1 Replies View Related

First And Last Record Message Boxes

Jul 11, 2005

I have been tasked with building an Access MDB Database for absolute beginners and i need to guide them as fool proof as possible through the database

My Question is

I need to write a Macro or VBA and I need to warn the user if they are trying to move to the 1st record or the last record in the database

I would like to give it my own message box stating that is not possible to go further

Is this possible using a Macro or using VBA

View 1 Replies View Related

Record Is Deleted Message?

Aug 29, 2006

Hi All,

This is my first post here and I imagine there will be many more as I have only just started out using Access to create a database at work and I am sure that I'm breaking many rules along the way.

Anyway, over the weekend, my boss tried to add some information (to the "Memo" field) in a form that I have created from a table, went to close the form and got a message saying something along the lines of "this record cannot be saved, if you close it, information will be deleted.

Now, in the Memo field, is the text "#Deleted" - when I try to overwrite this and come out of the record, it comes up with the message "record is deleted". If I put information in any other field in the record, there is no problem.

Also, in the table, if I try to sort by the Memo field, it comes up with same message, "record is deleted".

Does anyone know what I've done and how I can solve this?

With thanks in advance.

Ronnie

View 10 Replies View Related

Message Box For Saving Record?

Dec 28, 2011

i want to have message box asking "Want to save the record or not" to save the record.

form contain the subform also. i read some thread regarding that issue they suggest i have to use form's beforeupdate property. i used it for the main form but message box is appearing before entering the values in subform. i mean i have to enter some data in subform also.

i am attaching database for ur references. after entering PO nunber PO date and selecting client message box is apearing but it should be come after updating data in subform i.e. details.

View 5 Replies View Related

Error Message 'No Current Record'

Jun 7, 2005

Not sure what is happening here...

I keep getting an error message saying 'No Current Record'...especially when trying to create a new form or report using wizard.

I don't have this problem at home..only in work.

Any ideas?

Cheers

View 1 Replies View Related

Record Is Deleted Error Message

Aug 3, 2006

By: Tony Hine (mail@TonyHine.co.UK)
Tel: +44 1635 522233
My profile on ecademy (http://www.ecademy.com/user/tonyhine)

I had a problem importing just one table I kept getting the message “Record is deleted” and no records were imported.

First I thought it may be because there were quite a few columns in the table so I tried importing just one column, however I got the same message “Record is deleted“ .

I considered it could be because the database was originally in a Company office workgroup. I wondered if the “Work group security” was causing the problem. I read up on this and found that importing the objects directly into a new database was one of the recommended ways of circumventing this problem. This was what I was already doing! So what was wrong?

Next idea, I exported all of the records into an excel spreadsheet. This was successful! So I then re-imported the records from the spreadsheet back into a table in the database.

There were a couple of problems, in that all of the text fields were converted to 255 character length. Although annoying I thought I could handle this problem. I proceeded making a few changes to this database, then I noticed that one of the fields that had been imported was originally a “Memo field” it had been converted to a text field with 255 characters. As soon as I noticed, I checked to see if any data had been lost by comparing this field with the original data. I found a significant loss of data so back to the drawing board!

All of the other tables had imported correctly, only this one seemed to be giving problems, I had tackled the size problem it was not a big table by MS Access standards, but I felt it could be the size, In particular the number of fields could be causing this error. But just trying to import one field at a time hadn’t worked?

Then it dawned on me what if I tried to import one record at a time --- that worked! So I wrote the query with a between statement I tried 10, then a 100, then a thousand records it worked fine! However when I tried 5000 records the error re-occurred?

I realized that I probably had some corrupt data in the table, so I set about systematically extracting a limited number of records until I found the area where the corruption was.

This worked but returned “0” records --- Between 11001 And 12000

“Between 12001 And 13000” Got error message “Record is deleted”

I got to 12800 all ok

12900 caused error

Error is in a record between 12800 and 12900

I will continue to whittle it down!

OK to 12819

The corrupt record is: 12820

I had found the corrupt record! Now all I had to do was create two queries one each side of this corrupt record to extract the information.

On inspection of this corrupt record I discovered that the memo field contained the following: “#Deleted “ I am going to attempt to modify the memo field and see if it fixes the corruption of the database.

My attempt at modifying the corrupt record, in particular the memo field containing “#Deleted” caused the error message to re-occur. “Record is deleted”

I have made a copy of the actual record 12820 and pasted it into a spreadsheet to send to the customer so that it can be checked in the existing data on their system.

Fortunately there were no related records in other tables affected.

View 1 Replies View Related

Creating A Message Alert On A Record

Feb 13, 2008

Hi

I am trying to create an alert function so that when a user open up a form and displays a record, it will also display any alerts that have been created for that record. e.g. missed payments etc.
I have created a table to store the alert data along with the job number to which the alert relates so in essence I can have more that one alert per job record. I amtrying get one of the alerts to display ok using the following code

alerts = DLookup("[Job _Number]", "Alerts", "[Job _Number]='" & Me.Job_Number & "'" And "[Start_Date]" >= Date)

You will see that I am trying to only display alerts that are within the valid date range (I have not yet included [End_Date] as I cannot get the code above to work.

Can anyone help me correct this code please?

The other thing is that because I am using a dlookup, I am assuming it will only display the first alert it finds in the table and that's it? If so, how do it get it to display all 'active' alerts with a matching job number. By active I mean where the Start date is >= Date() and End date is <= Date()

I would really appreciate any help on this..

Thank you all for reading.

View 4 Replies View Related

Record Not Updatable Error Message - Help!!

Nov 16, 2005

:eek:

I have a query in Access which I have always updated no problem until today. I tried to update the usual fields and it says "This recordset is not updatable". Does anyone know why this would have changed and how I can get it back to updatable?

many thanks

FJ

View 2 Replies View Related

Error Message When Adding New Record

Sep 12, 2005

Hi,

I get an error message when I add a new record to my database. It occurs when I open my form and use the [arrowright*]-button and when I use the switchboard button to add a new record using a form.

An error message is displayed, but when I dismiss the error (click OK), then everything seems to be normal and the record is added normally with the entered info. It is a bit annoying, though.

Since I have the dutch version, I'll try to translate the message:
"You can not add/append a value to this object

* The object possibly is a control-element in a read-only form
* The object is part of a form that is opened in the design view
* The value is too large for this field"

The error occurs right after I have typed the first character into a field on the form. The form consists of a few subforms. And I don't think any of the by access suggested errors have anything to do with this...


Any help is appreciated,
Thanks in advance,
MuFfiNimal

View 14 Replies View Related

Add Or Change Record Error Message

May 30, 2006

I am getting a "cannot change or add a record because a related record is required in table 'tblOrder'". I have scoured this site so forgive me if there is a post already on this.

My Order table has:

OrderID
CustomerID
SalesTaxRate


My Order detail table has:
OrderDetailID
PoNumber
TransDate
ProductID
OrderID
QuantitySold
QuantityReceived
QuantityOrdered
TransType

I wasn't sure if by this you could point me in the right direction as to why it is saying this. I am very new to Access so bare with me. Thanks

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved