473,320 Members | 2,071 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,320 software developers and data experts.

textbox size limit with sql

I'm hitting the 255 character limit of a text box on a form and was
wondering if anyone know how to get around this.

Here the scenario....

- Access 2000 front end with Sql Server backend.
- The textbound is bound to a field which is nvarchar*4000 (I know with
an Access DB you have to use a memo field to get around the size limit,
I would think nvarchar*4000 would be good enough)
- The 255 character limit only occurs in the VBA code. I could type
all 4000 chars in the text box and save the record with no problem.
However, it's only in the VBA code that the size of the text box get's
cutoff at 255. Maybe a different datatype will do the trick.
Thanks in advance for any help.

Nov 13 '05 #1
1 4986
SpreadPeace wrote:
I'm hitting the 255 character limit of a text box on a form and was
wondering if anyone know how to get around this.

Here the scenario....

- Access 2000 front end with Sql Server backend.
- The textbound is bound to a field which is nvarchar*4000 (I know with
an Access DB you have to use a memo field to get around the size limit,
I would think nvarchar*4000 would be good enough)
- The 255 character limit only occurs in the VBA code. I could type
all 4000 chars in the text box and save the record with no problem.
However, it's only in the VBA code that the size of the text box get's
cutoff at 255. Maybe a different datatype will do the trick.
Thanks in advance for any help.


I've not worked with such large strings when using SQL from VBA but if I
were in your shoes I would start by using SQL Profiler to see what SQL
is being generated when you save the record normally from the form.
Nov 13 '05 #2

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

Similar topics

2
by: steve | last post by:
I am setting up a huge database in mysql, and I get the above error in Linux. I believe it is related to the size of one of my tables, which is 4,294,966,772 bytes in size. Can someone help. How...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
12
by: Hugh Janus | last post by:
Hi group, I have a form with a textbox control on it. I am using the textbox control with multiline enabled to output the 'log' information for a long process I am running. My problem is that...
2
by: Calvin KD | last post by:
Hi everyone, I have a number of textboxes, lined up in a html table. I have split the table into different columns. The column widths are all relative, that is, % rather pixels or points so that...
13
by: Randy Jackson | last post by:
Hello, I'm creating a sample portfolio application for MS-Access XP, and I'm wondering if there's a suitable replacement for the ms-access textbox control. I'm looking for something similar to...
10
by: garyusenet | last post by:
I have a multiline textbox. The size of the text box should be 75 characters wide, and 5 lines in height like this: - <---75 characters--> <---75 characters--> <---75 characters--> <---75...
1
by: kowndinya | last post by:
Hai, Is there any way to limit the input data to the width of of the textbox itself. I don't want scroll data when user keyins. I don't want to use Max length concept because some times user may...
7
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt...
0
by: tshad | last post by:
I seem to have hit some sort of limit of a textbox (multiline). It was working fine for a while, but now I am getting a strange error having nothing to do with the problem. I have a Function...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.