PC Review


Reply
Thread Tools Rate Thread

ASP to Access

 
 
Daniel
Guest
Posts: n/a
 
      19th Aug 2003
I have an .asp page that adds records to an Access .mdb
file. I have 3 fields in the .mdb that need to be
updated: field1, field2, field3. I manually enter field1
and field2 on the .asp page. I want field3 to be
field1*field2. The only time that I manually open
the .mdb using Access is for maintenance. How can I
accomplish this? Thanks in advance.
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      19th Aug 2003
UPDATE myTable SET Field1 = ::FormField1::, Field2 = ::FormField2::, Field3
= ::FormField1:: + ::FormField2::
WHERE UniqueIdentifierColumn = SomeValue

This example assumes that Field1, Field2, and Field3 are numeric

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Daniel" <(E-Mail Removed)> wrote in message
news:003c01c36666$050be9b0$(E-Mail Removed)...
> I have an .asp page that adds records to an Access .mdb
> file. I have 3 fields in the .mdb that need to be
> updated: field1, field2, field3. I manually enter field1
> and field2 on the .asp page. I want field3 to be
> field1*field2. The only time that I manually open
> the .mdb using Access is for maintenance. How can I
> accomplish this? Thanks in advance.



 
Reply With Quote
 
Daniel
Guest
Posts: n/a
 
      19th Aug 2003
Kevin,

Where do I put this, I have setup the database connection
and have setup the form, but I'm not sure where to put
this statement.

Daniel


>-----Original Message-----
>UPDATE myTable SET Field1 = ::FormField1::, Field2

= ::FormField2::, Field3
>= ::FormField1:: + ::FormField2::
>WHERE UniqueIdentifierColumn = SomeValue
>
>This example assumes that Field1, Field2, and Field3 are

numeric
>
>--
>HTH,
>
>Kevin Spencer
>Microsoft MVP
>..Net Developer
>http://www.takempis.com
>Neither a follower nor a lender be.
>
>"Daniel" <(E-Mail Removed)> wrote in message
>news:003c01c36666$050be9b0$(E-Mail Removed)...
>> I have an .asp page that adds records to an Access .mdb
>> file. I have 3 fields in the .mdb that need to be
>> updated: field1, field2, field3. I manually enter

field1
>> and field2 on the .asp page. I want field3 to be
>> field1*field2. The only time that I manually open
>> the .mdb using Access is for maintenance. How can I
>> accomplish this? Thanks in advance.

>
>
>.
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      19th Aug 2003
Custom Query. Other than that, I can't tell you much. I never use the DRW.
Kathleen and others here can.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Neither a follower nor a lender be.

"Daniel" <(E-Mail Removed)> wrote in message
news:091301c3666d$d154cd50$(E-Mail Removed)...
> Kevin,
>
> Where do I put this, I have setup the database connection
> and have setup the form, but I'm not sure where to put
> this statement.
>
> Daniel
>
>
> >-----Original Message-----
> >UPDATE myTable SET Field1 = ::FormField1::, Field2

> = ::FormField2::, Field3
> >= ::FormField1:: + ::FormField2::
> >WHERE UniqueIdentifierColumn = SomeValue
> >
> >This example assumes that Field1, Field2, and Field3 are

> numeric
> >
> >--
> >HTH,
> >
> >Kevin Spencer
> >Microsoft MVP
> >..Net Developer
> >http://www.takempis.com
> >Neither a follower nor a lender be.
> >
> >"Daniel" <(E-Mail Removed)> wrote in message
> >news:003c01c36666$050be9b0$(E-Mail Removed)...
> >> I have an .asp page that adds records to an Access .mdb
> >> file. I have 3 fields in the .mdb that need to be
> >> updated: field1, field2, field3. I manually enter

> field1
> >> and field2 on the .asp page. I want field3 to be
> >> field1*field2. The only time that I manually open
> >> the .mdb using Access is for maintenance. How can I
> >> accomplish this? Thanks in advance.

> >
> >
> >.
> >



 
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
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:14 AM.