473,486 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

not accepting more than 17 characters in text field

Hi,

I have a form set up which collects details and then when submitted it
creates a new record in a table called rbh_vacancies

Most of the time it adds the records perfectly, but there seems to be a very
low number of characters it will accept in each field-

The following code updates the database-

myRS.Open "rbh_vacancies", myConn, adOpenKeyset, adOpenStatic
myRS.AddNew
myRS("location_type") = Request.Form("location_type")
myRS("job_type") = Request.Form("job_type")
myRS("description") = Request.Form("description")
myRS("salary") = Request.Form("salary")
myRS("location") = Request.Form("location")
myRS.Update
myRS.Close
Set myRS = Nothing

"description" is a text area field, and will only be accepted if the field
is no more than 17 characters long, I have tried setting the database to be
text(255), varchar(255), medium text, long text, even tried BLOB. But I
cannot get it to accept more than 17 characters!

I can put more than 17 in if I update the record through a mySQL front end
tool, but not via the browser, does anyone have any ideas!? Could it be
something to do with the way I am creating the record set? - "myRS.Open
"rbh_vacancies", myConn, adOpenKeyset, adOpenStatic" ??

I am also having similar problems with the other fields, but I guess if I
can sort out the description field, I can sort out the others.

Thanks

Andrew
Jul 23 '05 #1
2 1825
I'm not sure I explained that particularly well!

Basically - If my "description" field is 17 characters long, e.g.
12345678901234567 , it will update the database with the new record.

If I add an extra character to the description - 123456789012345678 , I get
the following error message-
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done.

/admin/dbaseadd.asp, line 15

~~~~~~~~

line 15 of the code is this-

myRS("description") = Request.Form("description")

Hope that makes more sense!

Thanks

Andrew

Jul 23 '05 #2
In case anyone ha a similar problem-

I've sorted it, thanks to the mySQL bugs documentation. There was an article
in their saying to add the following to the connection string-

; Option=3
Don't know why, but it works now!
Jul 23 '05 #3

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

Similar topics

4
6127
by: Matt Young | last post by:
I've been tasked with integrating an older management system based on DBF files with my snappy new ASP application to provide users of the ASP application with real-time data from the management...
1
1340
by: Heather Fraser | last post by:
Dear Sirs, Given the following table CREATE TABLE specifications ( objectId int not null default 0, paramValue varchar(255) not null default '', INDEX(objectId) )
0
1118
by: Steven Blair | last post by:
Whenever I attempt to return more than 255 characters from my MySQl 4.0 Database all I get from the field is 255 characters. The field in the Db is text and has more than 255 characters. I am...
1
1298
by: zek2005 | last post by:
Hi! I have a MySQL DB with a text field that includes both text and HTML tags. When I invoke that field in a page, I only see the text (not the HTML tags, of course). I only want to chow the...
4
5201
by: bitshift | last post by:
Im pulling a string out of a text field in sql and into a byte array in my C# code. Help frefresh my memory here, a single asci character is 1 byte correct ? So why is a string that is 37...
5
8932
by: Dean | last post by:
Hi, I have a table with non-unique identifiers. I need to take all the values with the same ID's and combine them into one field with a semicolon as a seperator. These values may exceed 255...
2
7919
by: Vbbeginner07 | last post by:
Hi all Wonder if anyone can help me out to solve this: please find the code of textbox that accepts only characters and one textbox that accepts only numbers: (vb) textbox for accepting...
0
1192
by: Steve | last post by:
Hi guys, I am working on a Team Process Template for TFS 2008. I have created my own work item type, which has (amongst other controls) a HTML control to hold process guidance text: <FIELD...
5
36608
by: nidaar | last post by:
From a security point of view, is accepting wildcards like "%" in input parameters of stored procedures against any best practices? As an example, if a user defined function uses "Productname...
0
6964
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
7126
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,...
0
7175
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
7330
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...
0
5434
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,...
0
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
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
262
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.