Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




Adding Fields RecordPaging


I found a recordpaging script that works fine except when I try to add additional fields. This script came with 3 field and 3 headings.

Adding addtional headings are easy but when I tried to add addtional fields, I don't get an error just a page with 5 headings and 3 fields. Take a look at the file an it's .inc file attached. I can't see where the field is referrenced from.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Adding Different Fields
Say I have to different recordsets that have the fields:
rsA.Fields.Item("A").Value ,rsB.Fields.Item("B").Value

How would I add those to fields? It may be my inexperience but when I
tried something like

rsA.Fields.Item("A").Value + rsB.Fields.Item("B").Value

didnt work because one of the fields was a empty value. I have about
6 fields i need to add together if a value exists in any of them.

Suggestions?

Adding Together DB Fields
I am requesting cost information from three databses and trying to add them together using asp but I am having problems.

totalCost = data01("cost") + data02("cost") + data03("cost")

when I try to display totalCost <% =totalCost %> it comes out as 5.005.005.00 just joining them together not adding then together I tried formating the data using formatNumber() but that didn't work either. If anyone could point out to me what I'm doing wrong.

Autopostback Adding New Fields
What I am looking to do is dynamically add an amount of text boxes depending on a user's choice on a static textbox. (when a listbox entry has been entered a number of textboxes would appear).

I have been deliberating this problem for a while and the best I got was to produce ascx files for each scenario, and use if statements for each user choice. The choice would initiate the number of textboxes for that given choice.

Adding Time Fields
I have 2 time fields like this:

time1="00:20:23.36"
time2="00:22:20.20"

and the result when added shud be

total time:"00:42:43.56"

I want to add these 2 TIMES.I retreive this information from a form.Any kind of information about adding these 2 date fields will be too helpful.I'm storing this in an Access DataBase.

Adding Database Fields And Displaying Them
This code has worked in the past on this same page, and for some reason it doesn't want to calculate the numbers anymore. Anyone see anything that is out of whack?

Basically I am taking the input numbers for each field and adding them up on one column, then taking the totals of all of those columns and adding it up to display as an overall total. Code:

Adding Bcc
I have a form on my asp page that sends data to an emailing script. I am working with other peoples code which is causing a lot of hassle. Is there any way of sending a Bcc address command from the form rather than the emailing script?

Adding
I wanted to know how I should go about doing this. I have this query:

SQLmax="SELECT Max(OrderNumber) AS intTotal FROM Status"

Which gives the Max(OrderNumber).Say in this case it is giving out put as 37.

Now i want the output to be displayed 38,which can be done by adding 1 to Max(OrderNumber).

Should i get this by doing this way?

var=RS(intTotal)
var=var+1
Response.WRite var

Is this right?

Adding Second Value
Im using this code to pass a value to a variable:

<a href="Artists.asp?cat=<%=Server.URLEncode( rsuser( "art_Artist" ) )%>">&nbsp;<%=rsuser( "art_Artist" )%></a>

How do I add another value to this link with the variable name catArt so that I can add:

?catArt=<%=Server.URLEncode( rsuser( "art_Artist" ) )%>


Adding New Row
what do you think is the best way to implement an "add new row to table" functionalilty?
am using asp(obviously )im currently using document.createElement with javascript, but im having a hard time retrieving the data.am also thinking if this is really the best way to do this.or if this would work with all other browsers other than IE...

Adding Pwd
how to add a password to using this connection string

<%
set conn = server.createobject ("ADODB.connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("dat48372.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
SQL = "SELECT Price FROM DABRadios WHERE (ID LIKE 6)"
rs.Open SQL, conn
showall=true
%>

Adding In Asp 3.0
i have a id1 field which has data like this 002,003,004 and i have to increment it by one when i add a new customer so this is what i do

Set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="Select Max(id1) from table2"
rs1.Open sql1, Conn ,2,2

maxid=rs1(0)

so i get the maxid for example as 003. the next record will be added and it should be 004 and i do it in this way maxid= maxid+1

but when the record is added the id1 field has a value of 4 instead of 004

Adding Data On Its Own!
I want to fix this problem, i dont no how. Bassicly there is blank data appearing in my database, for no apparant reason! Code:

Adding New User
How can I add a new user on my server using ASP?
User example: myserver/user1

Adding Pictures
I'm new to ASP and a few querys

I have created my database in Access with the following fields

StockCode (Text Box, Primary Key)
Item (Memo)
Price (currency)
Picture (memo)
OnOffer (Yes/No)

and I know that access table cannot have a picture in it, only a access
form using OLE, but how do I get my asp page to display a picture for
every record? The picture would be a picture of the product with the
Stockcode as the filename - m001110.jpg?

Adding Form
I have an ASP page with a table that fills with records from a loop. Every
row gets a link to another ASP page with data from the row. The link is
written as <a href=newpage.asp?value1=xx&value2=yy .... and so on.
Now I try to let the user specify a number that should be sent to the other
page. But I do not want to clutter up every row with each an input field,
so I thought instead I would place it above all the data rows. When the user
clicks on the link, I want to include the input field to the querysting. The
problem here is that I cannot figure out how to refer to the name of the
input field.

Adding Size
I have just finished building my first shopping cart in asp and MS Access. Originally the shopping cart was to be built for products with no size and colour, however as usual the goal posts have moved and I now need to incorporate a size and colour option for each product. Could anyone explain to me how I can go about doing this i.e. adding the different sizes and colours in the admin website and then linking them to a specific product when it is displayed on the products page? I know they both need to be in a dynamic drop down box when displayed on the products page within the shopping cart, but I am just wondering how to read the correct values out from the table depending on which product is being displayed. I have a normal products table at the moment with general fields i.e ID, name, description etc.

Adding Header
I have a web page hosted by server1. I need to add a link to a web page hosted by server2. This part is simple. However, I also need to give the linked web page the user id for the user that was validated in server1 (it's in a session variable).

At first, I thought the following would work:
mywebpageonserver1.asp:
Response.AddHeader "MYUSERID", "whatever"
Response.Redirect "http://server2/mywebpageonserver2.asp"

On server2, mywebpageonserver2.asp:


Adding Up Values
i have a page that enters numbers stored in different values e.g monday tuesday wednesday thursday friday into a database. is it possible in asp to add those values up and store the added up value in a seperate field in the database
bascially
total =monday+tuesday+wednesday+thursday+friday
How would i do that in asp.

Adding Recordset
I am using Dreamweaver MX to create ASP and MS SQL Server for database.
I got a few fields like Value1 - Value5.

So i have create the recordset of the 5 fields and i am extracting the total count of each field. Now i got 5 recordsets showing the total of each field.

So is it possible to add the value of the 5 recordset together into one value?

And is it possible to use the value of the recordset to do some simple math addition, subtraction, multiplication and division?

Adding Picture
I need to add a ppicture to my Database.. The table is accessed through ASP Recordset but having troubles trying to insert an individual picture to each record?

Adding Records
I have a table with 2 fields, name and value

I need to be able to add multiple records quickly, for example I need to add

name value
abc 1
abc 2
abc 3
abc 4
abc 5
abc 6

etc etc, does each record have to be added separately, or is there a way I
can add a chosen number of records, lets say 10, and have the value field
increase by one each time?

sometimes I might have 30+ simple records that need adding quickly, and each
time the first records value will be one, and each record after will
increase by one, is there a way to solve this problem or does each record
have to be added separately?

ASP Looping Adding
i have a variable in a database that is looping that outputs numbers like:

1. 45
2. 34
3. 94
4. 34

But are all in the same variable:

DoDateTime((rsBoxEdit.Fields.Item("").Value), 3, 2057)

How can i make it so that it loops that variable and adds the numbers up and outputs 1 variable called total or something?

Adding Records
I have a drop down which has numbers from 1 to 25

When a user selects 3 he will see 3 first name textboxes and 3 last name textboxes

the user fills them out and hits the submit button

three records are added to the table

i have a for loop for adding records

Here is my code:

Adding All Numbers
regarding adding or getting sum all of the numbers in the database fields
example of the Fields:

Totay_Payment
10.00
20.00
30.00
40.00

My problem is i cant display the exact SUM of all numbers and it goes like this 10.0020.0030.0040.00 and i want the exact sum like this 100.00

heres the example of my script :

inTotalPayment = rsSumNumber("Total_Payment")
Do While Not rsSumNumber.EOF
intSum = intSum + intTotalPayment
rsSumNumber.MoveNext
Loop
Response.Write(intsum)

Adding & Subtracting
Basically I want to take the field from the db (1 record) and add it to form input.

I've searched the forums--maybe I'm not using the right terminology, I can't come up with anything.

Do I need to specify that the value from the form is numeric? How?

Adding Values Together
i am trying to add to values togher but each time i try it dont work.

for example

when i try to add 7 and 3 i get 73 and not i want what is 10

i am using the below code

money=RS2("bank")
RS2("bank")=money + pay
response.Write("money="&rs2("bank"))

The DB code is fine as it is recording and pulling the data of te Database but i cant add them up only togher.

Adding Commas
4 months into the land of ASP and I still have newb questions.I have a simple string.

centertype = Type1 & Type2 & Type3 & Type4 & Type5

How do I add a comma to seperate this string? Keep in mind that some of the values may be blank.
i.e. Type1 = ""
or Type4 = ""

Adding To A DB From A Form
I want a user to select ADD from a dropdown menu and then the asp brings up a form allowing the user to add fields into the DB .....

Adding Record
after i add record from this page, when it link to the next page.. everything is blank, but the record has be added. how can i display the newest record with the old one after i click the add button?

code ...

Stopped Adding
I have been operating a win 2000 server with IIS5. I had to re-build the server recently. I installed SP4 and the lockdown utility. My asp code works on the website, I can access all data driven sites via the web. But I cannot add to the database from the website. It was fine before the re-build. The code has not been changed neither the connection. I have not installed microsoft acess on the server could this be the problem ?. The database is microsoft access file. I have ensured I have given the same information in the System DSN. The driver is version 4.00.6200.00 I have checked the database properties and it is not set to read only.what could be wrong?


Adding Alerts
The code below checks a form field for words that are in a database.How do i add the facility of if the words are found then adding an alert when submitted

<%
call connection
dim uninsuredcontents
uninsuredcontents = Request.Form("contents")
Set connDB = Server.CreateObject("ADODB.Connection")
connDB.ConnectionString = "Provider=sqloledb;Data Source=*******;DATABASE=*****;UID=****;PASSWORD=** **"
connDB.open
dim pcSQL

temp = split(uninsuredcontents," ")
Dim strCrit
pcSQL = "SELECT PAC_WORD AS word, SERVICEID AS tag FROM tblPackage_Alert_1_Content WHERE (PAC_WORD in ("

for i = o to ubound(temp)
if strCrit = "" then
strCrit = strCrit& "'%" & temp(i) & "%'"
else
strCrit = strCrit& ", '%" & temp(i) & "%'"
end if
next

pcSQL = strCrit & ")) AND (SERVICEID = '" & serviceid & "')"
%>

Adding Attributes
I want to add alittle background color attribute to the function below, so I can specify the background color of quoted text.

function replaceQuote(strString)
Dim strTemp

strTemp = replace(strString," Quote: ","<font face=""Arial Black"" size=2><i><bgcolor=""#799999""><center>")
replaceQuote = replace(strTemp," ","</center></i></font>")
end function....

Adding & Multiplying
can any on tell me the code for adding 2 or more items up and the code for multiplying from a user input box and a set number?

Adding Photos
I want to add photos into a database, with out inserting them. Id like ti have a field that when u enter the location it then displays it on the form, can this be done?

Adding Data
I have discovered that in my website,when a user tries to add data to the Access DB via a form,there is an error if the data contains an apostrophe,For e.g.If the user were to add the user Martin O'Neill to the DB,this would cause an error OR if the user were to add a book called User's Guide,this would also cause an error.

Does anyone know of a generic way to resolve this problem,preferably within the SQL statements which add the data to the DB?


Adding Feature
I am very new to ASP and I am trying to add an existing script.I have an open source shopping cart and I want to add real time shipping rates from USPS.

I have a username and password for the USPS server,but I am having trouble figuring out where to place it. Also if someone as a script to send and recieve data from the USPS server that would be great.


Adding Recordset
i am having trouble adding a recordset into the access database, the code seems to be working fine it passs and parses through all variables just fine without showing any errors and also when i access the recordset it displays the results, what the real issue is that the entry is not made into the database even though i use the Update command and i have also tried the BeginTrans and CommitTrans nothign seems to work and i am unable to figure out wats wrong with this code.

Adding Particular Days
i want to add particular days of the week of past two months into a dropdown list according to current date at run time but i am unable to do so can anybody tell me how to do that.

Adding Numbers
Is there a way to add numbers (currency) of the one column which is queried with sql from access database?I mean some asp tag or something, or I must use javascript?

Two Conditions Adding Each Other
why do conditions add themselves together if they are ints in a for loop?

for x = (iCurrentPage*10)-9 to iCurrentPage*10 OR searchRS.recordcount

response.write("hello")

next

iCurrentPage = 1
searchRS.recordcount = 4

The two conditions to end the loop add eachother and the loop prints hello 14 times. How can I have two different conditions in my for?

Adding To The Database
Right now I think I've got the idea on how to work on ASP pages after such a hectic start, then I 've got a small problem . i have contructed my form but i can't seem to add to the dbase, i can fill the info but i see nothing on my dbase.

Adding Dates
can someone tell me how to add a date with a format like this

- mm/dd/yyyy (07/04/2004) or (7/4/2004)

into a MySQL DB?"2004-07-04",i tried this one. its ok. but the others,zero, doesnt add to my DB.

Just Adding Two Numbers
i am adding two form variables but they give out put as concatinating and not adding
taking two textboxes / and a subjmit button . givin 30 and 20 in both text boxes and submit is add code and i am getting 2030 as answer instead of 50. can uany one help with a code?

Adding A Project To Interdev
I have a project which I wish to copy from Source Safe into my local Inetpub/wwwroot directory (did i mention I am using IIS on win 2k?), and create a virtual directory pointing to this content.

After that I wish to create a new project in Interdev (curse it to hell) by connecting to a new web application on localhost (i.e. what I have downloaded from sourcesafe).

I just can't do it!!!
I have done this several times before.
I think I have set my front page server extensions (necessary apparently) up correctly.

Any ideas?

Adding Checkbox Values
I am trying to create a 'build a quote' page in which a user can checkoff checkboxes and have the total add up once the submit button is clicked. An example of the code I am using is

<form action="add.asp" method="POST">
option 1 value is 5<input name=""check"" type="checkbox" value="5"><br>
option 2 value is 9<input name=""check"" type="checkbox" value="9"><br>
option 3 value is 1<input name=""check"" type="checkbox" value="1"><br>
option 4 value is 2<input name=""check"" type="checkbox" value="2"><BR><BR>
<input name=""Submit"" type="submit"> <input type="reset" value="Reset">
</form>
<hr>
<%
arrB = Request.Form("check")
arrA = split(Request.Form("check"), ", ")
If arrB<>"" then
For each x in arrA
total = x
next
response.write(total)
end if
%>

Adding A Year To A Date Value
Can someone please tell me how to add a year to the following date field from a SQL Server Database:

DatePaid = rs("DatePaid") & ""

I tried something like:

DateExpires = DatePaid + 1.

It certainly didn't work.

Adding Integers In Arrays?
I have two arrays that contain integers and I would like to add them, say array1(0)=1 and array2(0)=1. If I just do something like array1(0) = array1(0) + array2(0) I end up getting 11. How can I make it add the appropriate integers?

Adding Attachments With JMail
I’m creating an application that uses JMail to send email. And it works great!! as longs as I don’t try to add an attachment. However, I really need to have my users be able to add attachments; otherwise the purpose of this application is null and void.

I know that the file that is attached needs to be uploaded to a file share folder via FTP then encoded before being sent. My problem is that I don’t know how to code it. This is the JMail code that I am working with: I need some help in getting the code other than (Jmail.addAttachment) for adding the attachment......

Adding A Drop Down List
I have an asp page that creates a table from a Ingres II database. The headers at the top of the columns are hyperlinks that ad a order by to my list. This was all working fine until I added more choices with a drop down list view_type .

Now I am getting this error:
ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. I am thinking it has to do with when my list is reordered it does not know which view type and is not going through the count. Code:


Copyright © 2005-08 www.BigResource.com, All rights reserved