Need Info On Using Proper Data Type For Words With Apostrophe
What is the correct data type to use if the phrase I'm saving to my table contains an apostrophe such as in the phrase "yesterda's news". I've tried "text" data type, I've tried "varchar" and "char". They all give me bugs when I save to the database and if I remove the apostrophe from the phrase, then it saves correctly with any data type.
I have a asp page pulling results from an Access DB. I have no control of the data input to the db. All the information is entered in Upper case. It contains fields like address, city, etc..
DB data: AddressColumn: 123 BILL AVENUE format to 123 Bill Avenue
Is there a way to format the data on the webpage in proper case with a fucntion or routine? I am not a programmer by trade but can follow logic.
how to get some meta info on a number of files, such as author and owner. it is for a .asp web page wich indexes a list of files and shows info about those files (name, type, date last modified, etc)
so that who accesses the page can sort those files by the detail they wish, and i can't discover how to get the author and owner info about those files.
I have a SelectBoxes.asp page that is working with multiple selection dropdown boxes to extract data and total the selection prices. Tom & Bob were kind enough to give me a big help getting this page working and it's working just fine, no problems with this page.
However I then would like this data e-mailed using jmail (my host insists on this method) and that is the function of the sendEMail2.asp page.
This is failing and only giving me a HTTP 500 - Internal server error and I'm at a loss as to what's wrong. Code:
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. Any ideas or help would be appreciated
What difference does it make?I am building a table whose number of rows keep changing When i use the second method the space above my table keeps increasing.I just want to know which method is better..I had posted a similiar question....I'm still trying to figure out.
Please could you tell me if there is a way to actually delete the session from the users browser history? The above code works ok, as long as the browser is closed first, deleting the cookie info.
I am trying to do a comparison between two values and am getting the following error:
Microsoft JET Database Engine error '80040e07' Data type mismatch in criteria expression.
The code that is creating the error is as follows:
sb = Request.Form("storyboardscreen")
if Not Lcase(Request.Form("AllStoryBoard")) = "all" then whereClause = whereClause + "theStoryboard = " + sb end if
I am using the statement to build the where clause of my query. The sb value is retrieved from a pull down menu and "theStoryboard" column is the db is of data type "text". The values stored in the field are 12 digit numbers. I have tried doing a cstr to sb but that doesnt work, any tips on what I am doing wrong? I am using asp with an access db.
I'm grabbing data from an XML web service and storing the values in ASP variables. I'm trying to apply the cDbl function to values returned and I'm getting the following error:
can i put my operators into an arry, as i want to loop them later in a loop. but i have problem declearing the data type of the arrys.
Dim operatorsArray(4) As ????? operatorsArray(0) = "+" operatorsArray(1) = "-" operatorsArray(2) = "*" operatorsArray(3) = "/"
what should the data type be to work. can i have an example of how i am going to use it.can it be done this way eg. 2 operatorsArray(0) 3 operatorsArray(0) 4 operatorsArray(0)does the above interperate as 2 + 3 + 4?
I am calling a javascript function in my asp. I am passing a recordset value, a 7 digit integer, to this javascript function. However, in the function this value is not coming in correctly. say for example i am passing 0360001, in the function when i pass it to another window, its going as 122881.
I am asuming its because of the size of the default integer data type. If you think thats the reason, how can set a long integer data type to this value, if that can be done in asp.
I've created a web site system that a number of users use on their sites, but I manage each individual site/system on my ISP's server.
Creating updates to this system was fine when I only had a few users, but now its starting to become hard work uploading the required files to each site (I use CuteFTP) so I wondered if you knew of an FTP app that would allow me to automate the process.
I basically want to put a file or files in a local folder and then instruct the app to auto-upload these files to the same places, but on each site. If required, I can create the folder structure locally so that the app goes through a set of folders locally and uploads them to the same places on the sites.
Do you know of an app that can automate the process of uploading the same files to certain directories across multiple FTP sites?
I am doing a simple profile update webpage, I keep getting this error and can'y figure out how to fix it. I have included the code. The only field in my database that isn't a text field is my userid field which is an autonumber field.
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression ASP Code:
I am trying to insert data from one table to another but it always errors me on type mis matches or parameters.
Basically the SQL statement looks like this:
sql6 = "Insert Into tblWeeklyFixtures_Div3 Select * From tblAllFixtures_div3 Where GameDate > date() <=date()+7" conn.execute(sql6)
and it gives me error:
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. /DIGFootball/Admin/FriDiv3/update2.asp, line 142]
I tihnk it has to be that i havent declared that i will be importing into a Date/Time field in access but when i change this in acess it gives me more errors so for a peacful life i chnaged the field back to text but by doing this the above SQL statement is pretty useless.
how's the best way to handle yes or no check boxes in a form and DB?
I am building an apllication using ASP and MS SQL 2000. The form will have a total of 34 yes and no check boxes. That is, users will have to make a choice(s) by checking either one.
So my question is, for efficiency on the SQL side, what's the best data type to use?
The above code generates the "Type mismatch" error pointing to the line strB=strA+intA but why doesn't VBScript implicitly cast the value of intA into String when intA is concatenated with strA?
i use to get the difference between two dates i.e user's signup date and todays date in order to check that user has atleast logged into his/her account within 45 days otherwise i ll delete the account.
i calculate the difference by using datediff function for days upon current date and account created date. it displays the results in no of days say 32 days or 134 days
but i want to have it properly formatted in format like:
in case of 32 days 1 month and 2 days that i can do by myself
but how to handle following situations:
if there are 30 days in month if there are 31 days in month if there are 28 days in month if there are 29 days in month
Noob question I'm getting errors with the following code
Code:
processevent = Request.QueryString("processevent") SQL = "Select * From shimlog Where ID = '" & processevent & "'" Rs.Open SQL, Conn, 3, 3
Is giving following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e07' [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. /area51/shimlog.asp, line 53
Read MS webpage and using some :'s in there somewhere could not get it to work
I'm using ASP, VBScript, ADO for SQL server 2000. I have a stored procedure that I'm trying to use to insert a row using parameters. One of the field is date. Here is the parameter for that. Code:
Set param = cmd.CreateParameter("theDate", adDBTimeStamp, adParamInput, Date()) cmd.Parameters.Append param
But I'm getting this error. Error converting data type varchar to datetime.