Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #31  
Old May 16th, 2008, 07:34 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 920 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 19 h 24 m 24 sec
Reputation Power: 235
Quote:
Originally Posted by Database_N00b
For the duplicate data function when i create the record using duplicate data access gives me an error message, how do i create my own error message so that if a user enters duplicate data an error comes up asking to change the ID?

I am not sure how to capture this warning from the db. I usually create my own code to prevent duplicates. Lets say I want to prevent duplicate values from being entered into the field "TestID". I would then add a code to the after update event of the field. It would look something like this:

If DCount("[TestID]","tbl_Test",[TestID]='" & Me.Test & "'") > 0 then

Msgbox "Duplicate Value Warning",vbInformation
docmd.RunCommand acCmdUndo
exit sub
end if
What this code does is right after the id number is entered, the db checks the table to see if the id already exist in "TestID". If it does, then a message will appear giving the warning. As the user clicks "ok" on the warning, the code then undo the initial entry and the code exits.

Last edited by Toyman : May 16th, 2008 at 10:24 PM.

Reply With Quote
  #32  
Old May 16th, 2008, 07:37 PM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Hmmm seems a little complicated, im only looking to put an error message in my database because its practically the last thing i need to put in. Whats the simplist error message to implement with for instance dealing with peoples details, perhaps unrealistic DOB or something? Any suggestions and how to implement them will be appriciated.

Cheers

Reply With Quote
  #33  
Old May 16th, 2008, 10:28 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 920 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 19 h 24 m 24 sec
Reputation Power: 235
Quote:
Originally Posted by Database_N00b
Hmmm seems a little complicated, im only looking to put an error message in my database because its practically the last thing i need to put in. Whats the simplest error message to implement with for instance dealing with peoples details, perhaps unrealistic DOB or something? Any suggestions and how to implement them will be appriciated.

Cheers

The simplist error message is the message "Error". Not really, there is no simple way around this. If you want to look for errors in any part of the data entry, you must decide what you want to look for. After that, you will have to think of a way to look for that, and that is with code. I can't think of another way that can be simpler

Reply With Quote
  #34  
Old May 17th, 2008, 02:42 AM
sbenj69's Avatar
sbenj69 sbenj69 is offline
Redneck 'puter fell'r
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2007
Location: Redneck part of Illinois
Posts: 1,722 sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 1 Day 13 h 17 m 38 sec
Reputation Power: 1460
I'm sorry, I don't mean to be rude, but I've been following this thread from the beginning. It's like as soon as you get one part solved, you put up the next part to be solved. It's like you have no database experience at all, and that you are trying to get it built part by part. While I have no problem teaching people the basics of ms access, or watching others do so, I feel that one should study up on the basics.

Each of your problems should have been a new thread. From my perspective, you've monopolized Toyman's time with each new problem. I would venture to guess that he's spent at least an hour catering to your new problems. From a professional point of view, that would be $100-$200 worth of advice you have received.

Most of us that post solutions here are IT/IS professionals, and if the others are like me, time is a limited resource. Not only do I answer threads here, but I have countless aquaintences, friends, and family who want me to fix their problems, not to mention the extra hours I put in at work from time to time. We have no choice but to live 24 hours as an IT/IS professional.

Toyman is a premiere database professional, he knows his stuff. You can rest assured that whatever he tells you is good as gold. In this forum, I don't think there is anybody more knowledgeable, whether it be database design, vba function, form layout, etc. etc. The only person who equals his knowledge would be Don.

With that said, I think that you are taking advantage of the knowledge you are tapping. You should start new threads rather than say, ok that part works, how do I get this part to work? This gives others a chance to evaluate your problems, rather than monopolize one professional's time. That, and when you keep all your problems in one thread, the others (including myself) tend not to read past the first few posts.

If you have a 34 post thread, as it is now, we might read the first few posts and the last few posts..... we don't have time to track everything that was posted. Personally, I read the first post, maybe the next 2 and then the last post. This is why you should post each problem separately.
Comments on this post
AOG123 agrees: Geez sben,.. its 09:00 here. It must be like 4 in the morning there,...
__________________
Did I help you? If so gimme rep by clicking on the scales at the top right corner of this post

Madness does not always howl. Sometimes, it is the quiet voice at the end of the day saying, "Hey, is there room in your head for one more?"

Reply With Quote
  #35  
Old May 17th, 2008, 04:39 AM
Database_N00b Database_N00b is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 29 Database_N00b User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 19 m 53 sec
Reputation Power: 0
Quote:
Originally Posted by sbenj69
I'm sorry, I don't mean to be rude, but I've been following this thread from the beginning. It's like as soon as you get one part solved, you put up the next part to be solved. It's like you have no database experience at all, and that you are trying to get it built part by part. While I have no problem teaching people the basics of ms access, or watching others do so, I feel that one should study up on the basics.

Each of your problems should have been a new thread. From my perspective, you've monopolized Toyman's time with each new problem. I would venture to guess that he's spent at least an hour catering to your new problems. From a professional point of view, that would be $100-$200 worth of advice you have received.

Most of us that post solutions here are IT/IS professionals, and if the others are like me, time is a limited resource. Not only do I answer threads here, but I have countless aquaintences, friends, and family who want me to fix their problems, not to mention the extra hours I put in at work from time to time. We have no choice but to live 24 hours as an IT/IS professional.

Toyman is a premiere database professional, he knows his stuff. You can rest assured that whatever he tells you is good as gold. In this forum, I don't think there is anybody more knowledgeable, whether it be database design, vba function, form layout, etc. etc. The only person who equals his knowledge would be Don.

With that said, I think that you are taking advantage of the knowledge you are tapping. You should start new threads rather than say, ok that part works, how do I get this part to work? This gives others a chance to evaluate your problems, rather than monopolize one professional's time. That, and when you keep all your problems in one thread, the others (including myself) tend not to read past the first few posts.

If you have a 34 post thread, as it is now, we might read the first few posts and the last few posts..... we don't have time to track everything that was posted. Personally, I read the first post, maybe the next 2 and then the last post. This is why you should post each problem separately.



I appreciate all the help i have been given but with all respect this is a help forum. You make it sound like i have been disrespectful because only one person has mainly been posting in reply to me. I have only been using one thread because i dont like to clutter message boards with little problems. If i had done that then i would have probably got a similiar message to yours but with the title "Petty Problems" or something.

By posting another thread i would have to repeat myself many times and i figured that this saves time and effort because i can be consistent with my replies rather than starting afresh, if people only choose to read the first few and last few posts in a thread thats their choice but my questions have been on the last few posts anyway.

As for my database experience you are right, i dont have any, sorry to take this personal but my life is the main reason i havent had time to brush up on the basics but im not going to post all the details suffice to say i havent had the time due to some bad times going on in my life. This led me to find help from somewhere and after reading through some of the threads before i registered i realised this was a great forum and so i joined. I appreciate all the help being given to me and i intend not to "monopolize" any more time here now because it seems asking for help here now just comes down to taking advantage when the title of the forum is "Microsoft Access Help".

Thankyou Toyman, you have really helped me out a lot and iam very grateful for the help and time you have given me, and to the others that have helped in my other threads. I truly appreciate it.

Reply With Quote
  #36  
Old May 17th, 2008, 12:42 PM
sbenj69's Avatar
sbenj69 sbenj69 is offline
Redneck 'puter fell'r
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2007
Location: Redneck part of Illinois
Posts: 1,722 sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)sbenj69 User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1Folding Points: 305646 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Weeks 1 Day 13 h 17 m 38 sec
Reputation Power: 1460
You're taking this the wrong way. I'm sorry about the personal issues in your life.

You're right, it is a help forum, and my previous post was to "help" you get answers in these forums. When I see a thread such as this, I skim over it (too many posts to go thru).... I'm just saying that what happens if the person who's been helping you gets fed up and stops? Most of us will skip over this thread no matter how many times you bump it due to the number of posts.

In posting in separate threads, you will want to include fields that you will be working with, any code you may have already, and any error messages or incorrect output that you are getting. It's usually a good idea to include your table design too.

Even if you have 5 minutes here and 5 minutes there, you could be studying up on relational database theory.

I am not trying to discourage you from posting your database questions, I am trying to help you get them answered. Personally, it matters not, who helps you. I am trying to explain to you that when you tack new problems on the end of a solved problem, they are probably going to be overlooked by all of the other kind people who volunteer their time to try to teach others some of the knowledge they possess.

As far as real life issues that you may be going through, I empathize with you. Unfortunately, real life can be down right nasty from time to time.

At the top of this thread index there are stickies (permanent threads at the top) that can give you a lot of information. Or you can go >>HERE<< or >>HERE<<

It would definitely be worth your while to check out the stickies and links.

Reply With Quote
  #37  
Old May 17th, 2008, 01:04 PM
Toyman Toyman is online now
Contributing User
ASP Free Novice (500 - 999 posts)
 
Join Date: Oct 2004
Posts: 920 Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level)Toyman User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 19 h 24 m 24 sec
Reputation Power: 235
Quote:
Originally Posted by sbenj69
You're taking this the wrong way. I'm sorry about the personal issues in your life.

You're right, it is a help forum, and my previous post was to "help" you get answers in these forums. When I see a thread such as this, I skim over it (too many posts to go thru).... I'm just saying that what happens if the person who's been helping you gets fed up and stops? Most of us will skip over this thread no matter how many times you bump it due to the number of posts.

In posting in separate threads, you will want to include fields that you will be working with, any code you may have already, and any error messages or incorrect output that you are getting. It's usually a good idea to include your table design too.

Even if you have 5 minutes here and 5 minutes there, you could be studying up on relational database theory.

I am not trying to discourage you from posting your database questions, I am trying to help you get them answered. Personally, it matters not, who helps you. I am trying to explain to you that when you tack new problems on the end of a solved problem, they are probably going to be overlooked by all of the other kind people who volunteer their time to try to teach others some of the knowledge they possess.

As far as real life issues that you may be going through, I empathize with you. Unfortunately, real life can be down right nasty from time to time.

At the top of this thread index there are stickies (permanent threads at the top) that can give you a lot of information. Or you can go >>HERE<< or >>HERE<<

It would definitely be worth your while to check out the stickies and links.


I couldn't say this any better. Through the few years I have been on this forum, I have received more help from members here than I have helped. As such, I really enjoy helping others hear as I feel this is a good way for me to pay back what I have gained from this forum. As far as a "premiere database professional" I am not. I am just a humble tech junkie who is absorbing alot from this forum. Each person writes a db differently and a lot of the people here in the forum have simpler approach to a problem than I do. You are not doing yourself any favor by sticking with one style of writing a db. There are a vast amount of knowledge here in this forum and you would do yourself a favor by letting others look at the same problem from another angle.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Data Type


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT