There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer audio black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware network networking nvidia outlook outlook 2003 outlook express partition printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
How do i get a database to tell me when it has a new record?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Spu's Avatar
Spu Spu is offline
Member with 72 posts.
 
Join Date: Nov 2001
Location: UK
23-Jan-2002, 02:35 PM #1
How do i get a database to tell me when it has a new record?
The question is,

How do I get a database (Access) to tell me when it has a new record?

I want to be emailed when a user has completed a form which is then sent to a database to be stored. Do i attach a cgi code to the submit button so when the user clicks two operations happen at the same time (cgi email and insert database record), or use some form of code that will make the database tell me when its got a new record? With either option, please tell me !!!

I'm using ASP/VBscript.

Thanks for the help ! ! !

Spu
Bob Henderson's Avatar
Junior Member with 16 posts.
 
Join Date: May 1999
24-Jan-2002, 04:09 AM #2
Personally I would include some script in the asp page that your form calls on which would trigger the email at the same time as it does the data insert. I cant quote the code off the top of my head but I seem to recall it's fairly simple.
Cheers, Bob
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
24-Jan-2002, 11:29 PM #3
You can use CDONTs or a mail component like ASPMail to do this. You can set it up as part of the script in the form that will take info from the form and fill it into the appropriate mail fields and send. Should probably be set at the end of your codes form validation in case something isn't filled in correctly it won't shoot off an email until the script executes correctly.
__________________
**Disclaimer** Anything below this line ^ is part of my signature for those that may be confused

Sadly, there are no integers on this scale, so your gangly adolescent attempt to be clever has proved futile....Dieter

I have the right "NOT" to be tolerant of others because they are different, weird, or tick me off.....Parody of Andy Rooney

There are no stupid questions, but there are a LOT of inquisitive idiots.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:55 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.