Recordset Object When I Fetch The Value I Skip The Last 0
whenever i fetch any numeric value, having a zero at the end, e.g. 32080, from a database with a recordset object, i find that the value becomes stripped of the last zero, i.e. it becomes 3208.
View Replies
ADVERTISEMENT
i have a recordset in a results page
this retrieves all records but i only show the first 6 with all details (using a repeat region)
then i want to follow this with just thumbnails of the additional results
- this repeat region uses the horozontal looper
Either i need this second repeat region to start at number 7
or i need another recordset but with sql to ignore the first 6
(database is access)
can anyone offer any guidance on either solution?
View Replies
View Related
I want to open a recordset object on an .asp page. When I open the recordset I would like to use a stored procedure that expects a parameter to be passed for the stored procedure. I will then use the recordset to loop thru the recordset, update values from the recordset and then update the database by passing parmeters to another stored procedure.
I would like to use the recordset object but can it be used to pass a parameter to a stored procedure? Do I need to use a command object to open the records instead in
order to pass the parameter to a stored procedure?
View Replies
View Related
i am using ASP 3.0 to create web pages for a college project and i am
having problems in using recordset object through session object to
pass data to all web pages.Anyone tell me how to make recordset and
connection objects sessional.please i have a project to finish.
View Replies
View Related
Does the recordset contain any information about the table itself, such as the table(s) name?
View Replies
View Related
Im having a few prblems with object recordset and
variables. I can print data into a table using
objrecordset("Type").
But when i try to assign the value
to a variable, ex. variable1=objrecordset("Type") i get
an invalid use of null error. If i take out the code to assign
it to a variable it works fine. So my question is how can i
assign the value of objrecordset("type") to variable1.
View Replies
View Related
i need a object/class/function that return me a array/object like this:
set oDataFromSQLServer = function_or_class(sql)
while oDataFromSQLServer.eof
value = oDataFromSQLServer("colum_name") oDataFromSQLServer.next
next
ps: I donīt want to use a Recordset in this case.
ps2: I don't want to use GetRows in this case, because it doesn't pertmit "string index" like array("columName")
View Replies
View Related
I just purchased a domain package from gate.com and am setting up my SQL database connection on there server.
I am able to connect to the database fine, however when I am creating a recordset it shows my main menu table (and other tables) like this.
truthhub@truthhub.com.mainMenu
(the system "default" tables have "dbo" as a prefix)
It doesn't show any columns in that table and when I test the connection from there it gives me an Invalid Object Name Error.
On SQL Server it shows "truthhub@truthhub.com" is the owner of the table...so I am kinda confused
If I go to the advanced tab and delete the truthhub@truthhub.com and just leave mainMenu, then I can test and see my results.. however this will be a very inefficient way to start the work on my new site.
Has anyone run accross this problem before, or does anyone know how to make Dreamweaver cut the truthhub@truthhub.com off of of my tables? ...
View Replies
View Related
I would like to use an ADODB.RecordSet object to temporarily store some data and then iterate through it. Actually it needs to be a RecordSet only because it is a perfect choice as data structure for what I want to do, I don't want to actually run queries or update tables with it. It seems to me, however, that the RecordSet works only if there's a query behind it. ADO complains about the RecordSet not being open when I try to add rows by the AddNew function, or try to add fields to it.
Is there a way to use the RecordSet without actual database date behind it? Or is there maybe some object in VBScript that provides the same or at least similar functionality? (Apart from Scripting.Dictionary, which is great, but I would like to use something more similar.
View Replies
View Related
I have a problem with my programm and get the error above. In the file I've commented the relevant lines with **** and normaly the SQL-statement are in one row but there is a better overview when it looks like this.
View Replies
View Related
If the physical path of a page is :
" e:facecgi_bindetails\_Nviews.asp "
and i want to remove "\_Nviews.asp" portion from this path.means whenever the page refreshes,no matter what the name of the page is.the last portion of the name of the page with slash must skip out from this path string .....how can i do this while using VBscript Functions.....like using Split(),RIGHT(),LEN(),LEFT()...etc..
View Replies
View Related
How do you make the following skip the first field?
Code:
<%for each x in rs.Fields%>
View Replies
View Related
I want to skip an item in a loop, and go to the next item, e.g
[vbs]
For Each bla In ble
If bla = "skip" Then
'Skip to next item
End If
Next
[/vbs]
Is this possible, and if so, could you show me how?
View Replies
View Related
How do you make the following skip the first field? Code:
<%for each x in rs.Fields%>
View Replies
View Related
I searched an issue on the net and in our forum but could not find any solution. My question is :
How to skip some block of code while programming in asp page so that I get the necessary part of page only???
View Replies
View Related
I'm using ASP FormMail to collect user info, but now I'm trying to figure out how to modify the code so that any blank fields from the form will not be displayed on the confirmation page/email. I tried to modify the code below in bold, but it gave me a syntax error. Code:
View Replies
View Related
If the physical path of a page is : " e:facecgi_bindetails\_Nviews.asp "
and i want to remove "\_Nviews.asp" portion from this path ...means whenever the page refreshes,no matter what the name of the page is ....the last portion of the name of the page with slash must skip out from this path string .....how can i do this while using VBscript Functions.....like using Split(),RIGHT(),LEN(),LEFT()...etc..
View Replies
View Related
What are the ASP codes required to fetch files from a remote location?
View Replies
View Related
I have a webpage with a form. This form submits data that goes to a mdb file
(id (AutoNumber), name, email contry etc.). I would like to make another
page where I can type the ID number and it will show all the fields only for
that id.
View Replies
View Related
query = "SELECT table. * FROM table where table.lastname=" & lname
How can I fetch all the rows with the lastname field equals to lname variable?
View Replies
View Related
I want to save the details of phases. On selecting a phase, there are 3 columns, task ,start date, end date in a row. Next to it, a button'Add task' is displayed. on clicking this, another row appears below. When i click submit, the data is saved if the following condition is truw: The end date should not be less than start date. how do i retieve the data of all the rows.
View Replies
View Related
I'm trying to make a sorting feature for my site which will allow the user to click a drop down menu, click the item they only want displayed, click a button, and then the results will only display that particular item.
I also would like the drop down menu to auto-fill because there are about 20 different categories available. is there and easy way to do this?
View Replies
View Related
I have an excel file having textfields, I want to get its value from the ASP page. What is the way to get it?
View Replies
View Related
I need to run a query to get records with date within 30 days from current date.What I used to do with SQL server 2000 was the following:
Date30More = Date+30
MPQry = "SELECT * FROM SOP_T where Rev_Date < '" & Date30More
This stops working with Oracle because Rev_Date in Oracle is in the format of "DD-MON-YYYY HH:MM:SS PM". Therefore, I received an error message as the following:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Oracle][ODBC][Ora]ORA-01858: a non-numeric character was found where a numeric was expected
View Replies
View Related
I've a large database that I am working with. The problem is right now I've so many sample data in the datbase all the testing data in it. I want to clear the database and reset the AutoNumber so that it starts at 1 and goes up by one.I know that its possible in Access and I've done it before, problem is the tables have relationship and lots of them.
the way I know to rest the AutoNumber require me to break the relationship but it will take very long time for me to rectreate them again and I might not get them same at the end.Is there a way to rest the AutoNumber without having to break the relationship?
View Replies
View Related
im trying to connect to access and display some infor. from table. but it cant work, many errors occur, saying dat the<%language="VB" runat="server"ris not found in server. what i need to add in so that i can take infor. from acess? some codes.?
Example:
SELECT* FROM Detail... bla... bla... bla...
View Replies
View Related
A client has an OLE field called Signature in an Access database. The field contains a GIF image of a scanned signature (that a product has been received). How can I show this on an ASP page?
View Replies
View Related
I'm looking to display information pulled from a database based on information the user puts into a text box. The user will enter their sales rep number and I want to hit a table and return their name as soon as they tab off of the text box.
View Replies
View Related
There are 26 prizes available in a competition a client is running and he wants to be able to select these at random.
I thought the best way of doing this would be to construct a simple ASP page which displays 26 random records from the database.
The fields I wish to display are called name, email and address, and these are located in the table called Competition (this is an MS Access db).
View Replies
View Related
I have a text box when user type (Name) on it and push search button,if
database has this name information such as(phone, address,...) comes in
several text box, if user want to update these information ,change text
in text box and save it, I couldn't write the update code for this
situation,
View Replies
View Related
Is it possible to fetch data records from other website and store in a
database dynamically.
I mean to say i want to fetch data from a yellow pages website. showing records of different companies.
i.e, http://www.website.com/data.aspx?Co...1&DirectoryID=2
So, now I want a script which goes on this path and copy data after that go on next page which is CompanyID=3&DirectoryID=2 and follow the procedure.
View Replies
View Related
Last week, my shopping cart was still working well until I began getting the following errors 2days ago..
Error Type:
ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
../order/saveorder.asp, line 157
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Page:
GET /main/saveorder.asp
Could you check my code below and let me know what possibly the error is?
View Replies
View Related
I'll admit my ASP skills are very rusty, and come seeking help.
I'm currently using a dictionary object to store a multi-dimensional array.
I want to pass this dictionary object to an object, which holds an array of dictionary objects.
However I'm finding that the array is not getting set, thus I'm having great issue with dynamically resizing the object's property for every new dictionary object I'm adding.
View Replies
View Related