473,473 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

posting several transaction in a file

2 New Member
<%
sql= "SELECT * FROM tblitems "

set recobj = Server.CreateObject("ADODB.Recordset")

'recobj.LockType=3

recobj.Open sql,connobj

%>

<td width="9%" height="1"><select name = "Itemno">
<option selected ><%=recobj("itemno")%></option>
<%

Dim stritemno
Dim strunits
Dim strsdesc,strsale,stramount

DO WHILE NOT recobj.EOF
stritemno=recobj("itemno")
sql= "SELECT * FROM tblitems WHERE itemNo = '"& stritemno&"'"
'strunits=recobj("units")
'strsdesc=recobj("sdesc")
'strsdesc=recobj("sale")
'stramount=recobj("amount")
' end if
response.write (stritemno)
%>
<option value ><%=stritemno%></option>
<%
recobj.MoveNext
loop %>
</select>

<%

sql= "SELECT * FROM tblItems WHERE ItemNo = '"& stritemno&"'"
response.write (stritemno)
'strunits=recobj("units")
'strsdesc=recobj("sdesc")
'strsdesc=recobj("sale")
'stramount=recobj("amount")



' recobj.close
' set recobj=nothing
%>

</td>
<td width="7%" height="1"><input type="text" name="qty" size="5">
</td>
<td width="12%" height="1"><input type="text" name="units" size="10" value = '<% = strunits %>'>
</td>
<td width="42%" height="1"><input type="text" name="sdesc" size="30" value = '<% = strsdesc %>'>
</td>
<td width="14%" height="1"><input type="text" name="sale" size="10" value = '<% = strsale %>'>
</td>
<td width="17%" height="1"><input type="text" name="amount" size="13" >
</td>
</tr>

I have the above code trying to pick Itemno from a file . If it is selected I diplay the record to a table. Then I move to the next line select the next item diplay it then enter qty , then next item until am done then sum up the total amount

Please help

Thanks in advance
Mar 1 '07 #1
0 770

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: TZoner | last post by:
1) Can one find the location of the 'Transaction Log' at: <Hard Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf? 2) Is it safe to delete it, as SQL will create a new Transaction...
3
by: Bucfan1 | last post by:
Hello All, I have been encountering trouble with a SQL Server 2000 Transaction log file, mainly with the constant growth and lack of the autoshrink option. Here are the details: 1.) OS is...
4
by: Ron | last post by:
Hi All I've got 2 files, transactions and comments, linked by a clientID as a FK in the clients file and as a FK in the comments file (PK in the 'client' file of course). The comments don't...
6
by: Chris Fink | last post by:
I have the need to perform an atomic operation in two systems, a database and an ftp site. The process is two step; 1. insert a row into oracle, 2. delete a file from a remote ftp site. I need to...
1
by: Hubert Fröhlich | last post by:
Hi list, when doing a large Insert I get in the logfile: 2004-08-03 07:23:46 LOG: recycled transaction log file "000001BA000000BD" 2004-08-03 07:34:00 LOG: recycled transaction log file...
2
by: Christian Stooker | last post by:
Part one: ====== Hi ! I want to use SQLite database like the FireBird database: with big isolation level. What's that meaning ? I have an application that periodically check some input...
6
by: Joe Kovac | last post by:
Hi! I change quite a lot TableRows in several Tables of a typed DataSet. Now I would like to know which is the best way to save all the rows. Currently I just use each TableAdapters Update()...
2
by: =?Utf-8?B?Q2hyaXMgRmluaw==?= | last post by:
I have the following requirements and am looking to make this into a c# transaction. 1. Read from a file into a memory stream 2. Insert the stream into a DB 3. Delete the file Is it possible...
3
by: sonny minor | last post by:
hi guys, im new in microsoft access and i got stuck with some problems. i created a table called inventory transaction and the fields are 'transaction No (PK)' "transaction reason', 'transaction...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.