Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change field property of table

Status
Not open for further replies.

primerov

Technical User
Aug 16, 2002
160
BG
Field property in a table

I have a field called Quantity where the Required property is set to Yes.I want to change it to No.
In other words, I need to change in the table "order details" the required property of the field Quantity from Yes to No, but through code.
I can easily change this property by opening the table in design view,nothing easier than that.I need however to ship this function to different users in the

country, and these users cannot open the table "order details", the table being protected. So i will ship them a form with the code through an OnClick event.
I hope i am clear with what i want to do and will be grateful for any help.
 
Try this:

CurrentDb.TableDefs("TableName")("FieldName").Required =False

HTH
[pipe]
Daniel Vlas
Systems Consultant
danvlas@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top