473,387 Members | 1,721 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,387 software developers and data experts.

How to stop this popup msg ?

chinfk
15
I has a combo-box in the form, that after update event it keep on pop up below msg :

"The data has been changed. Another user edited this record and saved
the changes before you attempted to save your changes. Re-edit the
record."

How can i stop this ?

Thanks for advanced.
Oct 12 '07 #1
7 1604
nico5038
3,080 Expert 2GB
Microsofts explanation is:
http://support.microsoft.com/kb/302492

Is your form based on a linked table ?

Nic;o)
Oct 12 '07 #2
missinglinq
3,532 Expert 2GB
And maybe a peek at the combo-box's AfterUpdate event so we can see what it's doing.

Welcome to TheScripts!

Linq ;0)>
Oct 12 '07 #3
chinfk
15
My after update has below code : (No subform)

DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE [Temp-OrderHeader].* FROM [Temp-OrderHeader];"
DoCmd.RunSQL "DELETE [Temp-OrderDetail].* FROM [Temp-OrderDetail];"
DoCmd.RunSQL "INSERT INTO [Temp-OrderHeader] ( Type, ORDNO, SYSDATE, MODEL, SUBJECT, ORDDATE, ETA, REV, PACK, ETA2, REMARK1, REMARK2, REMARK3, REMARK4, REMARK5, REMARK6, Location ) SELECT OrderHeader.Type, OrderHeader.ORDNO, OrderHeader.SYSDATE, OrderHeader.MODEL, OrderHeader.SUBJECT, OrderHeader.ORDDATE, OrderHeader.ETA, OrderHeader.REV, OrderHeader.PACK, OrderHeader.ETA2, OrderHeader.REMARK1, OrderHeader.REMARK2, OrderHeader.REMARK3, OrderHeader.REMARK4, OrderHeader.REMARK5, OrderHeader.REMARK6, OrderHeader.Location FROM OrderHeader WHERE (((OrderHeader.ORDNO)=[Forms]![OrderDelete]![OrdInfo]));"
DoCmd.RunSQL "INSERT INTO [Temp-OrderDetail] ( ORDNO, LOTNO, PARTNO, CUSTPARTNO, SSNO, ESNO, SHIPQTY, HEADCODE, REMARK, REV,REASON ) SELECT OrderDetail.ORDNO, OrderDetail.LOTNO, OrderDetail.PARTNO, OrderDetail.CUSTPARTNO, OrderDetail.SSNO, OrderDetail.ESNO, OrderDetail.SHIPQTY, OrderDetail.HEADCODE, OrderDetail.REMARK, OrderDetail.REV, OrderDetail.REASON FROM OrderDetail WHERE (((OrderDetail.ORDNO)=[Forms]![OrderDelete]![OrdInfo]));"
Me.Requery
DoCmd.SetWarnings True
Me.Detail.Visible = True
Me.Type.SetFocus

Please have an advice for me to block the popup msg .... thanks.
Oct 17 '07 #4
nico5038
3,080 Expert 2GB
Is your form with the combo perhaps bound to Temp-OrderHeader and/or Temp-OrderDetail ?

Nic;o)
Oct 17 '07 #5
chinfk
15
Yes it is bound to order header
Oct 18 '07 #6
nico5038
3,080 Expert 2GB
Hmm, then you have a problem when deleting and inserting rows as the form is bound to the table(s) you're manipulating.
One option is to manage the delete and insert before showing the form.
Can't you place the code "behind" the button that's opening the form?
That way the "fresh" data is already in place when the form opens.

Nic;o)
Oct 18 '07 #7
chinfk
15
Thks for the advice, i hav find the reason why it popup by disable or remark the
delete temp table in cancel button.

So by doing that when user select the order it won't pop up that msg again.

Thanks again n hav a nice day ya. =)
Oct 19 '07 #8

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

Similar topics

10
by: hokiegal99 | last post by:
How can I make this script run w/o seeing a cmd popup window on the screen? The script works well, but each hour (when the task scheduler runs it) a brief cmd window appears and then goes away....
38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
3
by: Jeppe bob Dyrby | last post by:
I have a page that automaticly opens a small popup window, but it is only supposed to open this window once. A little info: function openwindow(name_var) { if (!name_var) { name_var =...
17
by: Applebrownbetty | last post by:
Hi, I'd like to append/amend the following code from the Dreamweaver extension "Open Picture Window Fever" for the ability to center the PopUp window: By default, it allows the window to be...
4
by: Colin Graham | last post by:
Hi guys, Just a quickie here that i hope someone can help me with. Basically i want stop the user from closing the popup window using the small x button in the top right hand corner. Im aware...
15
by: | last post by:
So many websites can get around my Googlebar's popup blockers. Even Opera 8 can not stop those popups. I looked into the codes, and I can find nothing showing me how it is done. Can anyone help me...
4
by: yxq | last post by:
Hello, I want to popup a form to indicate doing a long time work, when this form shown, anyting on main form are disabled until the popup form closed. ************************** Dim a as new...
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
1
by: hanniella | last post by:
Hi, For some reason my onclick/off click pop up window is see through and the text underneath can still be viewed, which makes reading the popup difficult. Can anyone helpP This is my javascript:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.