473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Frontpage 2002 & passing an SQL variable

Hi, I am quite new to frontpage and SQL but I have a Stock Control
access database / frontpage to set up. My last problem deals with the
automatic updating of the total quantity of stock with parts move in or
out of the warehouse. The following shows my page layout

(i posted this on the frontpage group, but I think their level is too
high for my skills, since i use the DRR most of the time)
I have form.htm that asks the user for two things - StockCode and QtyIN

i pass these values to form.asp via POST with action form.asp
form.asp contains a DRR query: SELECT Qty FROM totalQty WHERE StockCode
= '::StockCode::'
i have to capture the QTY value as a variable - so i am using session
variables. My problem is I do not know what value to assign to the
variable. At the moment I have

<%
dim strOldQty

strOldQty = FP_FieldVal(fp_rs,"Qty")

session("OldQty") = strOldQty
%>

but this seems NOT to work.
on the same form.asp is an inserted web component page called send.asp
send.asp has a form with a submit button and settings to send the data
to a database. the advanced (hidden) options include the two variables

StockCode and QtyIN via <%=request.form("QtyIN")%> which i
know works for sure when i tested it separately to send one table to
two different databases.
the confirmation page of send.asp (accessed from form.asp) is another
page, final.asp
final.asp has the database results region with a query for an UPDATE
statement.
UPDATE totalQty
SET Qty = strQtyIN + strOldQty
WHERE StockCode = strStockCode
there is then a link on final.asp to return to the homepage.
there are two main problems left in this:
1) how to assign the correct value from the custom query to the session
variable.
2) how to assign StockCode and Qty to session variables on form.htm
I currently have:

<%
dim strStockCode, strQty

strStockCode = request.form("StockCode")

strQty = request.form("Qty")

session("StockCode") = strStockCode

session("Qty") = strQty

%>

I am using session variables because I have attempted to pass hidden
variable with no success.

it would help a lot if you can tell me where to input your suggested
code as sometimes frontpage does not allow me to alter the code.
I hope i made this complicated web structure somewhat easy to follow
i know i have a lot of questions, but your help is greatly appreciated

omar K

Jul 23 '05 #1
0 1699

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Raju V.K | last post by:
I am developing a web site which requires a set og unique values be transferred between pages and server many times. There fore i decided to put the values in an array so that only one reference to...
18
by: Raymond Alexander | last post by:
I produce a couple of simple web sites on Frontpage 2002 and when attempting to validate the pages via W3C.org I get the FATAL ERROR message because the pages don't have the proper DTD's. My pages...
0
by: Chris J | last post by:
Hi all, ] I'm having a problem with Word 2002 when downloading a Word document with IE6. This is in an intranet application, and the download occurs through an ASP that does security checks...
6
by: C T | last post by:
My work is about to have me use Frontpage 2002 to build and maintain an intranet web site. I'm trying to draw a comparison between the two, but I'm having trouble finding info about .NET. ...
4
by: Jim Heavey | last post by:
I have a friend that does all of their web page development in FrontPage and she has asked me to create some asp.net pages for here with some db functionality. I know nothing of Frontpage ans she...
1
by: LynchburgRecord | last post by:
The Code Snippet (from VB Net in Visual Studio Net 2003) below does the following (1) Create a Front Page (2002) Application Objec (2) Open a We (3) Close the We (4) Execute Front Page...
7
by: barrett bonden | last post by:
Is there any way to pass parameters to a function and simply know there will get there without the silly (C like ) complexity of worring about byval and or perhaps byref ? (Why bother to...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
2
by: FP | last post by:
I have a javascript variable set to the contents of a database comments field. To set the js variable I used the PHP addslashes function which encodes the apostrophe, double quotes and the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.