PC Review


Reply
Thread Tools Rate Thread

how do i create a web form that emails AND saves to a database?

 
 
=?Utf-8?B?R3VpZG8=?=
Guest
Posts: n/a
 
      8th Aug 2005
I have a web form that currently emails the data to me. I need to have it
save to an Access database that I display the results from. I have other
forms that save data to Access databases, so I know how to make all that
work, but is there a way to make one form do both? Or - is it possible to
make Access send me an email with the data every time a new record is entered?
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Aug 2005
See:
http://support.microsoft.com/default.aspx?scid=kb;[LN];Q275251

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

"Guido" <(E-Mail Removed)> wrote in message
news:F6624854-7C9D-4DF4-971D-(E-Mail Removed)...
>I have a web form that currently emails the data to me. I need to have it
> save to an Access database that I display the results from. I have other
> forms that save data to Access databases, so I know how to make all that
> work, but is there a way to make one form do both? Or - is it possible to
> make Access send me an email with the data every time a new record is entered?



 
Reply With Quote
 
=?Utf-8?B?R3VpZG8=?=
Guest
Posts: n/a
 
      9th Aug 2005
Thank You very much. Just what I needed.

"Thomas A. Rowe" wrote:

> See:
> http://support.microsoft.com/default.aspx?scid=kb;[LN];Q275251
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> ==============================================
> If you feel your current issue is a results of installing
> a Service Pack or security update, please contact
> Microsoft Product Support Services:
> http://support.microsoft.com
> If the problem can be shown to have been caused by a
> security update, then there is usually no charge for the call.
> ==============================================
>
> "Guido" <(E-Mail Removed)> wrote in message
> news:F6624854-7C9D-4DF4-971D-(E-Mail Removed)...
> >I have a web form that currently emails the data to me. I need to have it
> > save to an Access database that I display the results from. I have other
> > forms that save data to Access databases, so I know how to make all that
> > work, but is there a way to make one form do both? Or - is it possible to
> > make Access send me an email with the data every time a new record is entered?

>
>
>

 
Reply With Quote
 
Randy Morgan
Guest
Posts: n/a
 
      8th Sep 2005
I'm using the paper written by Jim to send form results to both an email
address and a database. I use FP2003.

Not all the fields in my form are required, or at least I don't want
them to be. If I leave a field blank and submit the form I get an error
saying that (for example) Results.Address1 cannot be a zero-length
field. When I populate the field in the form it goes through fine.

Is there a way to modify the code to allow a blank field?

Thanks,
Randy Morgan

Guido wrote:
> Thank You very much. Just what I needed.
>
> "Thomas A. Rowe" wrote:
>
>
>>See:
>>http://support.microsoft.com/default.aspx?scid=kb;[LN];Q275251
>>
>>--
>>==============================================
>>Thomas A. Rowe (Microsoft MVP - FrontPage)
>>==============================================
>>If you feel your current issue is a results of installing
>>a Service Pack or security update, please contact
>>Microsoft Product Support Services:
>>http://support.microsoft.com
>>If the problem can be shown to have been caused by a
>>security update, then there is usually no charge for the call.
>>==============================================
>>
>>"Guido" <(E-Mail Removed)> wrote in message
>>news:F6624854-7C9D-4DF4-971D-(E-Mail Removed)...
>>
>>>I have a web form that currently emails the data to me. I need to have it
>>>save to an Access database that I display the results from. I have other
>>>forms that save data to Access databases, so I know how to make all that
>>>work, but is there a way to make one form do both? Or - is it possible to
>>>make Access send me an email with the data every time a new record is entered?

>>
>>
>>

 
Reply With Quote
 
Randy Morgan
Guest
Posts: n/a
 
      8th Sep 2005
The actual error shown is:

Microsoft JET Database Engine error '80004005'

Field 'Results.FirstName' cannot be a zero-length string.

/dev/registration-c.asp, line 118

Randy Morgan

Randy Morgan wrote:
> I'm using the paper written by Jim to send form results to both an email
> address and a database. I use FP2003.
>
> Not all the fields in my form are required, or at least I don't want
> them to be. If I leave a field blank and submit the form I get an error
> saying that (for example) Results.Address1 cannot be a zero-length
> field. When I populate the field in the form it goes through fine.
>
> Is there a way to modify the code to allow a blank field?
>
> Thanks,
> Randy Morgan
>
> Guido wrote:
>
>> Thank You very much. Just what I needed.
>>
>> "Thomas A. Rowe" wrote:
>>
>>
>>> See:
>>> http://support.microsoft.com/default.aspx?scid=kb;[LN];Q275251
>>>
>>> --
>>> ==============================================
>>> Thomas A. Rowe (Microsoft MVP - FrontPage)
>>> ==============================================
>>> If you feel your current issue is a results of installing
>>> a Service Pack or security update, please contact
>>> Microsoft Product Support Services:
>>> http://support.microsoft.com
>>> If the problem can be shown to have been caused by a
>>> security update, then there is usually no charge for the call.
>>> ==============================================
>>>
>>> "Guido" <(E-Mail Removed)> wrote in message
>>> news:F6624854-7C9D-4DF4-971D-(E-Mail Removed)...
>>>
>>>> I have a web form that currently emails the data to me. I need to
>>>> have it
>>>> save to an Access database that I display the results from. I have
>>>> other
>>>> forms that save data to Access databases, so I know how to make all
>>>> that
>>>> work, but is there a way to make one form do both? Or - is it
>>>> possible to
>>>> make Access send me an email with the data every time a new record
>>>> is entered?
>>>
>>>
>>>
>>>

 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Sep 2005
You would have to learn to hand code your ASP/VBScript to test for blank input and then exclude the
field from the email.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

"Randy Morgan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using the paper written by Jim to send form results to both an email address and a database.
> I use FP2003.
>
> Not all the fields in my form are required, or at least I don't want them to be. If I leave a
> field blank and submit the form I get an error saying that (for example) Results.Address1 cannot
> be a zero-length field. When I populate the field in the form it goes through fine.
>
> Is there a way to modify the code to allow a blank field?
>
> Thanks,
> Randy Morgan
>
> Guido wrote:
>> Thank You very much. Just what I needed.
>>
>> "Thomas A. Rowe" wrote:
>>
>>
>>>See:
>>>http://support.microsoft.com/default.aspx?scid=kb;[LN];Q275251
>>>
>>>--
>>>==============================================
>>>Thomas A. Rowe (Microsoft MVP - FrontPage)
>>>==============================================
>>>If you feel your current issue is a results of installing
>>>a Service Pack or security update, please contact
>>>Microsoft Product Support Services:
>>>http://support.microsoft.com
>>>If the problem can be shown to have been caused by a
>>>security update, then there is usually no charge for the call.
>>>==============================================
>>>
>>>"Guido" <(E-Mail Removed)> wrote in message
>>>news:F6624854-7C9D-4DF4-971D-(E-Mail Removed)...
>>>
>>>>I have a web form that currently emails the data to me. I need to have it
>>>>save to an Access database that I display the results from. I have other
>>>>forms that save data to Access databases, so I know how to make all that
>>>>work, but is there a way to make one form do both? Or - is it possible to
>>>>make Access send me an email with the data every time a new record is entered?
>>>
>>>
>>>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      8th Sep 2005
You will have to modify your database field to not require data.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

"Randy Morgan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The actual error shown is:
>
> Microsoft JET Database Engine error '80004005'
>
> Field 'Results.FirstName' cannot be a zero-length string.
>
> /dev/registration-c.asp, line 118
>
> Randy Morgan
>
> Randy Morgan wrote:
>> I'm using the paper written by Jim to send form results to both an email address and a database.
>> I use FP2003.
>>
>> Not all the fields in my form are required, or at least I don't want them to be. If I leave a
>> field blank and submit the form I get an error saying that (for example) Results.Address1 cannot
>> be a zero-length field. When I populate the field in the form it goes through fine.
>>
>> Is there a way to modify the code to allow a blank field?
>>
>> Thanks,
>> Randy Morgan
>>
>> Guido wrote:
>>
>>> Thank You very much. Just what I needed.
>>>
>>> "Thomas A. Rowe" wrote:
>>>
>>>
>>>> See:
>>>> http://support.microsoft.com/default.aspx?scid=kb;[LN];Q275251
>>>>
>>>> --
>>>> ==============================================
>>>> Thomas A. Rowe (Microsoft MVP - FrontPage)
>>>> ==============================================
>>>> If you feel your current issue is a results of installing
>>>> a Service Pack or security update, please contact
>>>> Microsoft Product Support Services:
>>>> http://support.microsoft.com
>>>> If the problem can be shown to have been caused by a
>>>> security update, then there is usually no charge for the call.
>>>> ==============================================
>>>>
>>>> "Guido" <(E-Mail Removed)> wrote in message
>>>> news:F6624854-7C9D-4DF4-971D-(E-Mail Removed)...
>>>>
>>>>> I have a web form that currently emails the data to me. I need to have it
>>>>> save to an Access database that I display the results from. I have other
>>>>> forms that save data to Access databases, so I know how to make all that
>>>>> work, but is there a way to make one form do both? Or - is it possible to
>>>>> make Access send me an email with the data every time a new record is entered?
>>>>
>>>>
>>>>
>>>>



 
Reply With Quote
 
Randy Morgan
Guest
Posts: n/a
 
      8th Sep 2005
That's interesting, because I don't think I set it up to require data.
The database is currently in use and written to by a form, all of which
was generated by FP. In the current incarnation the form can save a
blank value to the database, but it's not working when I use the code
from the white paper.

There may also be another problem, since the e-mail does not get sent
even when all the fields are populated and the database gets updated as
it should.

Thanks,
Randy Morgan

Thomas A. Rowe wrote:
> You will have to modify your database field to not require data.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a macro in a librabry database that emails reminders (Access2003-Outlook 2003) kimtorvinen@hotmail.com Microsoft Access 5 18th Aug 2008 02:29 AM
ASP.net - Incoming emails saves into DB - How? Dave Smithz Microsoft ASP .NET 2 16th Jan 2005 11:10 PM
outlook XP does not send messages nor saves sent emails =?Utf-8?B?U2VyZ2lvQXJlbmE=?= Microsoft Outlook Discussion 3 6th Jan 2005 08:40 PM
Using VBA to Create/Modify a Form in Another Database Stephen C. Smith Microsoft Access Form Coding 7 26th Feb 2004 01:39 AM
Passwords not saves for checking emails Jaime Andersen Microsoft Outlook 1 22nd Nov 2003 05:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:56 AM.