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

using a checkbox

Status
Not open for further replies.

johnc83

Technical User
Jan 29, 2008
154
GB
Hi all,

I am trying to use a checkbox and I'm sure I'm overcomplicating it. Would appreciate help pls..

My tblCustomers has a field called 'OnStop' which tells the user if he/she is able to sell a product to them when they come to book them in. At the moment I have it as a varchar datatype with either Y for Yes or N for No.

On my Customers form (after the customer has been loaded) I check to see if the value is Y or N. Depending on this, I then set the checkbox to either checked or unchecked.

Is there a way I can give this a proper data type so that when the customer loads, the checked/unchecked state is completed automatically?

Thanks for any help

Regards, John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
 
Cheers, i'll try that out

John

.NET 2.0, Visual Studio 2005, SQL Server 2005 Express
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top