473,386 Members | 1,819 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,386 software developers and data experts.

datacolumn field length

Hello,

I'm using VB.NET to update data in an Access database. Before inserting the
value, I want to compare the length of the string I'm holding in a variable
to the length of the data column into which its intended. How do I do that? I
checked the properties of the DataTable, DataRow and DataColumn objects to no
avail.

Thanks in advance!
Jack

Nov 21 '05 #1
2 2821
dataColumn.MaxLength

Tom

Jack wrote:
Hello,

I'm using VB.NET to update data in an Access database. Before inserting the
value, I want to compare the length of the string I'm holding in a variable
to the length of the data column into which its intended. How do I do that? I
checked the properties of the DataTable, DataRow and DataColumn objects to no
avail.

Thanks in advance!
Jack

Nov 21 '05 #2
Thanks. I checked MaxLength and it is always -1. Is there a property of the
dataset to provide this info or something like that?

"tomb" wrote:
dataColumn.MaxLength

Tom

Jack wrote:
Hello,

I'm using VB.NET to update data in an Access database. Before inserting the
value, I want to compare the length of the string I'm holding in a variable
to the length of the data column into which its intended. How do I do that? I
checked the properties of the DataTable, DataRow and DataColumn objects to no
avail.

Thanks in advance!
Jack

Nov 21 '05 #3

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

Similar topics

7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
5
by: Mike | last post by:
I'm using a script provided by e-mailanywhere, it's a little too big for me. There's 1 text field and 1 password field in a form. OnSubmit, I would like both fields to be validated to look for...
6
by: WindAndWaves | last post by:
Hi Gurus In my quest in putting my first javascript together, I am now trying to conquer something that seems trivial, but has taken me hours. I would like to format a field in a form once the...
0
by: Juan Irigoyen | last post by:
As I can create a property in which they appear them name of the columns of a datatable object and when selecting selects the name of the column I have tried with the following code but when...
3
by: Steven | last post by:
How can I disable the ThreeState of a checkbox in a datagrid datacolumn (dataset)? Because of the ThreeState the checkboxes in my datagrid can be in the states 'Checked', 'Unchecked', and...
1
by: David P. Donahue | last post by:
Probably a simple question... I have a DataSet which gets its schema from an external xsd file. At one point in the code, I am iterating through all the records in one of the DataSet's...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
3
by: DaveP | last post by:
im Trying to set a Datacolumn type for a new table boolean is not working, What is the correct waty //column.DataType = System.Type.GetType"System.Data.SqlTypes.SqlBoolean"); column.DataType...
3
by: mnishani | last post by:
Is there any way to add a default value to a datagrid column(for the whole column - eg : system date) . I'm using vs2003 and datagrid and using dataadapter to update the grid. Thanks in advance
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...

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.