473,387 Members | 1,876 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.

bypass the error messages?

jayme
83
ms access 2000.
on my default switchboard there is a button that opens up a form(named Inquiry Find). on the form you can type in an "Inquiry Number" then click the button to look up that certain number and all the information that goes with it-which is on another form (named JOB TRACKING form). so it automatically brings up that record in the JOB TRACKING form. i have this set up so people can easily find the inquiry number they are looking for then edit the information.
well i was testing this out-so i opened up an inquiry number, made a change to it and when i hit the [>*] to save and then close the forms it comes up with an error saying that the changes were not successful becuase it would create duplicate values. so i hit ok then it says that it couldn't save the changes at this time. do you want to close the db object anyway? and i choose yes.
WELL-when i go back into the table and look at that record the changes are there!
so im confused why i am getting this error. its not a big deal but other users will be using this db so is there a way to just bypass the erros so they don't think something went wrong?

thank you!
Apr 18 '07 #1
16 2918
MMcCarthy
14,534 Expert Mod 8TB
ms access 2000.
on my default switchboard there is a button that opens up a form(named Inquiry Find). on the form you can type in an "Inquiry Number" then click the button to look up that certain number and all the information that goes with it-which is on another form (named JOB TRACKING form). so it automatically brings up that record in the JOB TRACKING form. i have this set up so people can easily find the inquiry number they are looking for then edit the information.
well i was testing this out-so i opened up an inquiry number, made a change to it and when i hit the [>*] to save and then close the forms it comes up with an error saying that the changes were not successful becuase it would create duplicate values. so i hit ok then it says that it couldn't save the changes at this time. do you want to close the db object anyway? and i choose yes.
WELL-when i go back into the table and look at that record the changes are there!
so im confused why i am getting this error. its not a big deal but other users will be using this db so is there a way to just bypass the erros so they don't think something went wrong?

thank you!
Check out the JOB TRACKING form. It sounds like you are trying to add a record as well as save changes. Check out the code in the forms close and unload events.
Apr 18 '07 #2
jayme
83
i looked at the events on the JOB TRACKING form and there are no close or unload events. so is that the problem? what needs to be in those events to make it work correctly?
Apr 18 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
i looked at the events on the JOB TRACKING form and there are no close or unload events. so is that the problem? what needs to be in those events to make it work correctly?
No I thought there was something there that was causing the problem.

What is the query that is the record source of this form?
Apr 18 '07 #4
jayme
83
What is the query that is the record source of this form?
the record source of both forms is a table-when you fill out the [JOB TRACKING form] it updates the table. so for the [Inquiry Find] form it finds the requested inquiry number that is entered, in the table then pulls up the form for that record with all the information for that number.
does that make sense?
Apr 18 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
the record source of both forms is a table-when you fill out the [JOB TRACKING form] it updates the table. so for the [Inquiry Find] form it finds the requested inquiry number that is entered, in the table then pulls up the form for that record with all the information for that number.
does that make sense?
Are you saying that the Inquiry Form is bound to the table? If so, why?
Apr 18 '07 #6
jayme
83
Are you saying that the Inquiry Form is bound to the table? If so, why?
i made the [JOB TRACKING form] to fill in the [JOB TRACKING] table - it is an easier and more organized way of filling in what needs entered into the table. then i got the idea of being able to just type in the inquiry number you need and that form that has been previously filled out comes up and you can edit it or whatever you need to do to it. so thats when i made the [Inquiry Find] form as like a preface to the actual [JOB TRACKING form]-it is just supposed to find the number we need and pull that form up.
Apr 18 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
i made the [JOB TRACKING form] to fill in the [JOB TRACKING] table - it is an easier and more organized way of filling in what needs entered into the table. then i got the idea of being able to just type in the inquiry number you need and that form that has been previously filled out comes up and you can edit it or whatever you need to do to it. so thats when i made the [Inquiry Find] form as like a preface to the actual [JOB TRACKING form]-it is just supposed to find the number we need and pull that form up.
But you don't need the Inquiry Form bound to the table. Just a listbox or combobox bound to a query that has the required fields. You are then opening the JOB TRACKING form to the selected record in the listbox/combobox. By having both forms open to the same record at the same time Access is trying to compensate by creating a new version of the record.

Mary
Apr 18 '07 #8
Denburt
1,356 Expert 1GB
If you go directly to the table and you make the same changes directly in the table do you have the same problem?
Apr 18 '07 #9
Denburt
1,356 Expert 1GB
Mary definitely sounds like she has the issue nailed down (sorry Mary). ;)
Apr 18 '07 #10
MMcCarthy
14,534 Expert Mod 8TB
Mary definitely sounds like she has the issue nailed down (sorry Mary). ;)
No apologies necessary. Nice to have extra input even if only to confirm my own feelings about what is going on. :)

Mary
Apr 18 '07 #11
jayme
83
If you go directly to the table and you make the same changes directly in the table do you have the same problem?
no it allows me to make changes in the table and close it without any problem. i think it might be what mary said
By having both forms open to the same record at the same time Access is trying to compensate by creating a new version of the record.
so the best way to do this would be to create a listbox or combobox you think?
Apr 18 '07 #12
jayme
83
Mary definitely sounds like she has the issue nailed down (sorry Mary). ;)
well thanks for your help too denburt!
Apr 18 '07 #13
MMcCarthy
14,534 Expert Mod 8TB
so the best way to do this would be to create a listbox or combobox you think?
Yes.

The Inquiry form should not be bound to the table and should just have a listbox/combobox with enough column data to allow the user to select the appropriate record.

Mary
Apr 18 '07 #14
jayme
83
Yes.

The Inquiry form should not be bound to the table and should just have a listbox/combobox with enough column data to allow the user to select the appropriate record.

Mary
ok-i understand. thank you.
is there a way for them to just type in the number they want? just to make it easier..becuase there are TONS of records to scroll thru-so if theres a way for them to type the number then hit enter or whatever that would be much easier.
Apr 18 '07 #15
jayme
83
i think that i got it to work by using a command button..i have a combo box where they type in the number they want then they push the command button that opens the form with all the information on it.
i tested it and made changed then closed the forms and did not receive any errors..so i think it works!
thanks for your help!!!!
Apr 18 '07 #16
MMcCarthy
14,534 Expert Mod 8TB
i think that i got it to work by using a command button..i have a combo box where they type in the number they want then they push the command button that opens the form with all the information on it.
i tested it and made changed then closed the forms and did not receive any errors..so i think it works!
thanks for your help!!!!
You're welcome.
Apr 18 '07 #17

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

Similar topics

3
by: hebandgene | last post by:
When I delete a record in a subform I get the warning that I'm about to delete a record, followed by an error "No current record." When I click OK obviously the record is deleted and it goes to...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
2
by: Mahesh Devjibhai Dhola | last post by:
Can you please help me in my problem? I have a socket prog. application like http://www.codeproject.com/dotnet/csharpwhiteboard.asp My application is chat application like above architecture....
2
by: Thomas Guignard | last post by:
Hi there I need to run an XSLT stylesheet on XML files generated by another app that seem to have errors. When I try to run my XSLT processor (MSXML engine, run through the Cooktop editor), I...
1
by: hepsi | last post by:
Can u please tell me How to ByPass the Secure Shell Connection from one server to other server...that is from Mysql to postgreSQL Mysql is local ... whereas PostgreSql is client one...remote host...
3
by: CanuckChuck | last post by:
I have a code for enabling a command button to password protect the enabling/disabling of the Shift bypass. For some reason though I keep recieving a syntax error when I try to use it. I copied the...
1
by: OlaPihl | last post by:
Hi, How can I by code enable and disable "Bypass proxy server for local adresses" in Internet Explorer / Tools / Internet Options / Connections / LAN Settings. I have made a program (VB.Net)...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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: 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...
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
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
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
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...

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.