473,394 Members | 1,889 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,394 software developers and data experts.

Auto Incrementing number display on form submit

I dont know if this is possible or if someone has a better way to do
this but here it is:

I have a page where the user enters an rma#, lot#, and number of
barcodes they need to print, here is the code for the results page that

shows the barcodes to print:
<%
RMABarCode = Request.Form("idrma")
NoTimes = Request.Form("NoTimes")
If Len(RMABarCode)>0 Then
If IsNumeric(NoTimes) Then
For i = 1 to NoTimes
response.write "<div><img src='barcode.asp?code=" & RMABarCode &
"&height=25&width=1&mode=code39'></div>" & Request.Form("idrma") & "-"

& Request.Form("idlot") & "<p></p>"
Next
End If
End If
%>
So if the user entered rma# 1234, lot#1, and number of
barcodes(NoTimes) 3 it displays
(barcode) ** being the physical barcode **
1234-1 ** what is displayed under the barcode **
(barcode)
1234-1
(barcode)
1234-1
What i need to add is that each barcode has a unique number.
What i need it to display is:
(barcode)
1234-1(1)
(barcode)
1234-1(2)
(barcode)
1234-1(3)
The number of barcodes needed(NoTimes) is also going to be the unique
identity of the barcode...
Does that make sence?? If so, can it be done??
Thanks in advance.
Respectfully,
Danny

Oct 30 '06 #1
1 1569
"Mangler" <dw******@directwireless.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
RMABarCode = Request.Form("idrma")
NoTimes = Request.Form("NoTimes")
If Len(RMABarCode)>0 Then
If IsNumeric(NoTimes) Then
For i = 1 to NoTimes
response.write "<div><img src='barcode.asp?code=" & RMABarCode &
"&height=25&width=1&mode=code39'></div>" & Request.Form("idrma") & "-"
& Request.Form("idlot") & "<p></p>"
Next
End If
End If
What i need it to display is:
(barcode)
1234-1(1)
(barcode)
1234-1(2)
(barcode)
1234-1(3)
You already have the variable "i" which counts from 1 to NoTimes
For i = 1 to NoTimes
so you just need to display this. e.g.

& Request.Form("idlot") & "(" & i & ")<p></p>"

--
roger
Oct 30 '06 #2

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

Similar topics

8
by: Prometheus Research | last post by:
http://newyork.craigslist.org/eng/34043771.html We need a JavaScript component which will auto-submit a form after a set period has elapsed. The component must display a counter that dynamically...
2
by: Irwinsp | last post by:
Hi All, I have a form with an auto number field displayed. The field looks great except when the user is entering a new record. The field then has the text "auto number" in it. Is there a...
6
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
4
by: c676228 | last post by:
Hi everyone, I need to write a insruance program which needs to collect multiple people information, The information for each person includes name, email, address, phone, dob etc. The DOB data...
2
by: Simon | last post by:
I had an access database that i use as an ordering system. I have a form for entering customer details. When i add a new customer on the form the customer number is an auto number that appears when...
6
by: luanhoxung | last post by:
hi all ! I have a text field with contruction: 0001-COM. I need to it automatically increase 0002-COM when add new record and ..... Any help with appreciated. Luan
7
by: jwhitby3 | last post by:
Hi all, I am trying to develop what amounts to a data entry page for the company I work for, (mostly to make my job easier). I think that I am beginning to grasp php, but I am at a loss now. I...
12
by: badvoc | last post by:
Hi, I have had some good fortune on this site so I am back and I must iterate I am a beginer. I am having some problems getting to grips with the right technique to manage variables and...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.