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

field type

Status
Not open for further replies.

Informatic

Programmer
Oct 4, 2002
34
DE
Hi
I have made a SQL INTO - Query to create a table.
There is a Yes/No value into the table.
But when i create the new table i become as a value -1 or 0.
How can i change the type of the field .(True/False or checkbox).

I think it's a simple question but i can't find the answer in the Microsoft Help.
 
Yes/No = True/False = -1/0

Note that -1 = True/Yes Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
Yes , OK.
But i want to show the value on the table as true/false and not as 0/-1.
I think that's batter for the user.
!!!
 
Can't you just go to the table design view and make the column type yes/no? I guess I'm a little confused as to what you're doing... Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
OK
I have made a form where the user can select some columns.
Then he becomes the selected columns into a table.
I have write some VBA code with SQL Query.
When the new table becomes opened there are two columns with Yes/No value.But they both are shown as -1 or 0.
Then meens that i have to tell each user what -1 and 0 mean.
I just want to change the format of the fiels to Yes/No.
It looks better and user can understand the value of the field.

I have already tried with .CreateProperty but it doesn't worked.Maybe there is a simple way to change the format with VBA.

???
 
If you're already using VBA then maybe you could create the table manually rather than using "SELECT .... INTO". I'm sorry that I haven't been any more help. [sad] Get the Best Answers! faq333-2924
Is this an asp FAQ? faq333-3048

mikewolf@tst-us.com
 
[tt]
Hi:

Put a check box on your form, and bind it to the yes/no field. If the box has a check mark the field is true...if it's blank the field is not true. [glasses][tt] Gus Brunston - Access2000(DAO)[/tt] Intermediate skills.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top