473,320 Members | 1,978 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.

Required property of datatable

Hi,
I have a datatable which I try to update but the update fails because a
required property of one of the fields is set to True.

Where can I find this property?
On the Column there's only a AllowDBNull property but it's not the same...

Regards
Kejpa

I'm using MSAccess, might be worth noting
Nov 21 '05 #1
3 1356
Kepja,

Never heard of this. Can you show "some" code.

Cor

"Kejpa" <kS*******@saj.fi>
I have a datatable which I try to update but the update fails because a
required property of one of the fields is set to True.

Where can I find this property?
On the Column there's only a AllowDBNull property but it's not the same...

Nov 21 '05 #2
Kejpa wrote:
Hi,
I have a datatable which I try to update but the update fails because a
required property of one of the fields is set to True.

Where can I find this property?
On the Column there's only a AllowDBNull property but it's not the same...

Regards
Kejpa

I'm using MSAccess, might be worth noting


There's also a setting "allow zero length" or something to that effect.
I've tripped over that one myself a few times.

Rinze van Huizen
Nov 21 '05 #3
Yeah,
I've bumped into those two before, the strange default behaviour is that a
text field isn't required and don't allow zero length....
That's a contradiction to me and how do you store nothing in that field?!?

But that's not the case this time.

/Kejpa

"C-Services Holland b.v." <cs*@REMOVEcsh4u.nl> wrote in message
news:NL********************@zeelandnet.nl...
Kejpa wrote:
Hi,
I have a datatable which I try to update but the update fails because a
required property of one of the fields is set to True.

Where can I find this property?
On the Column there's only a AllowDBNull property but it's not the same...
Regards
Kejpa

I'm using MSAccess, might be worth noting


There's also a setting "allow zero length" or something to that effect.
I've tripped over that one myself a few times.

Rinze van Huizen

Nov 21 '05 #4

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

Similar topics

2
by: DC | last post by:
I have created the following abstract class: public abstract class BaseC { protected int _ID; protected string _name; protected abstract DataTable GetData(int ID); // intended to hit data...
3
by: Liddle Feesh | last post by:
Hi, I have a table named "Person" in a MSDE (2000) database, and am building a search form comprising of search fields on the top section (forename, surname, telephonenumber, etc) which all...
7
by: Raymond Lewallen | last post by:
Which would be the proper way or the reason for using any of the following or combinations of the following? These are the 3 ways I've figured I can do what I want to do, I just don't know which...
1
by: nate axtell | last post by:
I have a custom class with a Private DataTable member and a Public Property that returns this DataTable in its Get call. Is the DataTable that is returned from the Property's Get a reference to...
9
by: J055 | last post by:
Hi I'm trying to get an instance of UserLists to persist after it's been used by the GridView. I understand from the documentation that The OnObjectCreated event allows access to the instance. I...
2
by: osmarjunior | last post by:
Is there a way to change manually the RowState property of a DataRow, in a DataTable?? I wanna create a DataTable in memory, so I do the following: DataRow row = tbl.DataTable.NewRow(); row =...
2
by: simonZ | last post by:
I have class, which returns dataTable to populate my list box on some other pages: public class dataClass { private Int16 _lvlRights=1 public static DataTable dtAdv() {
7
by: Mike P | last post by:
I am trying to write my first program using threading..basically I am moving messages from an Outlook inbox and want to show the user where the process is up to without having to wait until it has...
1
by: uday1302 | last post by:
Hi Everybody, proj1-frmCatSql.cs contains a method like public datatable GetallMembers() { stms--------- } proj2-frmItem.cs conatins private void Filldata(combobox cmb, datatable...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: 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...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.