witecloner
Well-known member
- Joined
- Feb 12, 2009
- Messages
- 45
- Programming Experience
- Beginner
Hi all, i am newbie in vb.net.
I have two problem in difference case need to solved,
First case is i have try to build simple program. Where that's program is simplified to manage customer database.
Ok, before i want to describe first my simple database design. This customer table have some columns that are :
my problem is :
How can i save discount field and deposit field with 2 precisions digits into my table. I mean is save discount textbox value and deposit textbox value to database. Example :
TextBoxDiscount Value is 5.00 , Stored value to database is also same with TextBoxDiscount Value and proper to Discount Column's Data Type.
TextBoxDeposit Value is 1.500.000,00, Stored value to database is also same with TextBoxDeposit and proper to Deposit Column's Data Type.
And, The second case is how can i match Datetime Data Type in SQL Server 2005 with DateTimePicker Value in my project (code in vb.net)?
Thank you
I have two problem in difference case need to solved,
First case is i have try to build simple program. Where that's program is simplified to manage customer database.
Ok, before i want to describe first my simple database design. This customer table have some columns that are :
VB.NET:
CustomerCode (int) PK,
CustomerName(varchar),
CustomerAddress(varchar),
Discount(decimal)
Deposit(money)
my problem is :
How can i save discount field and deposit field with 2 precisions digits into my table. I mean is save discount textbox value and deposit textbox value to database. Example :
TextBoxDiscount Value is 5.00 , Stored value to database is also same with TextBoxDiscount Value and proper to Discount Column's Data Type.
TextBoxDeposit Value is 1.500.000,00, Stored value to database is also same with TextBoxDeposit and proper to Deposit Column's Data Type.
And, The second case is how can i match Datetime Data Type in SQL Server 2005 with DateTimePicker Value in my project (code in vb.net)?
Thank you