Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

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:
  #1  
Old June 24th, 2004, 09:56 AM
jayjc77 jayjc77 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Centerville, Oh
Posts: 13 jayjc77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
VB / Access Question

Hi all. Hoping you can help out with this.

I have been web-enabling alot of an access database with forms and asp.

In the database, there is a field in the record stating weather it's open or closed.

By default, the value is open.
When the record is changed to closed, I want to have an email sent -- confirmation (record number and column values) page to the email address in the record.

The changing of the status from "open" to "closed" will be done in Access.

I would like to have this automated and scheduled to run every night.

It would go through the database to see which records = closed by "completed_date" type of thing. And each record that was closed have the email sent to address in the record.

Any thoughts on the logic or how this can be done?

Thanks,
JC

Reply With Quote
  #2  
Old June 24th, 2004, 10:29 AM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,760 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 5 h 22 m 16 sec
Reputation Power: 443
You could create a simple console application, that connects to the database.
Gets all the records and for each record where the value is "closed", pass the necessary fields to a sub to send the email.

based on the info you provided it wouldn't be too hard, just break the steps down into smaller tasks...

Tasks
1) connect to database
2) Query database
3) loop through all records and check for value of "closed" in that field.
4) If "closed" then pass the records info to another procedure to send the email.

Reply With Quote
  #3  
Old June 25th, 2004, 03:43 AM
ADOSACOMP ADOSACOMP is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: indiana
Posts: 2 ADOSACOMP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to ADOSACOMP
Quote:
Originally Posted by Memnoch
You could create a simple console application, that connects to the database.
Gets all the records and for each record where the value is "closed", pass the necessary fields to a sub to send the email.

based on the info you provided it wouldn't be too hard, just break the steps down into smaller tasks...

Tasks
1) connect to database
2) Query database
3) loop through all records and check for value of "closed" in that field.
4) If "closed" then pass the records info to another procedure to send the email.

i am new to visual basic and visual studio and would like it if some one gave me some help . not looking for a hand out but would like to learn

Reply With Quote
  #4  
Old June 25th, 2004, 06:04 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 21 h 32 m 23 sec
Reputation Power: 180
Quote:
Originally Posted by ADOSACOMP
i am new to visual basic and visual studio and would like it if some one gave me some help . not looking for a hand out but would like to learn

What don't you understand? What have you tried so far?
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #5  
Old June 29th, 2004, 09:14 AM
jayjc77 jayjc77 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Centerville, Oh
Posts: 13 jayjc77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
okay.

I've been reading up on console applications to get started.

Looks like I can really screw this up, but I'm going to give it a stab anyways.

Anyone have any pointers for a noob?

Thanks,
JC

Reply With Quote
  #6  
Old September 22nd, 2004, 01:54 PM
jayjc77 jayjc77 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Centerville, Oh
Posts: 13 jayjc77 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This had hit the back burner for a while, and now it's pressing again.

I have the asp page to where I input the variable (date) and then submit the query and return "closed" records to a recordset by date.

How should I approach passing the records into a template and having them e-mailed.

Thanks,
JC

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > VB / Access Question


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway