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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set DisplayControl on Boolean when creating new table?

Status
Not open for further replies.

Komatose

Programmer
Oct 26, 2000
4
DE
My Problem is that I created a table with

create Table tablename (ItemBox LOGICAL)

and the DisplayControl (under LookUp) is set to Text but I need a Check Box! Does anyone know how to set it to Check Box via command?

Thank you for your answer!

Yours Michael
 
Moving this up to the top of the list so I can see if anyone today might have an answer for this problem. I am having the exact same issue and need the fields in the table to be set to check boxes. Thanks for any help!

Peggy
 
Here's the answer I found for future reference:

dbBkEnd.TableDefs(strTableName).Fields("EEE").Properties.Append dbBkEnd.TableDefs(strTableName).Fields("EEE").CreateProperty("DisplayControl", dbInteger, 106)

where dbBkEnd is a database variable, strTableName is a string variable holding the name of the table you are adding the field to and EEE is the name of the field you added.

Hope that helps someone in the future! :)

Happy Friday,
Peggy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top