Click here to Skip to main content
15,915,873 members

Comments by ZaYeD1 (Top 9 by date)

ZaYeD1 24-Feb-22 13:02pm View    
no problem with code
only i need code for show percent
about video convert from (avi to Mp4) or other format
i tired search about that no result until now
-_-
ZaYeD1 26-Jan-22 13:28pm View    
i use parameter for save sql but
no have idea for use parameter for search
ZaYeD1 11-Dec-21 3:36am View    
you are the best

"Just don't insert the StopWork date if it is empty"

now already work
thank you very much

ZaYeD1 9-Dec-21 5:49am View    
not work

EnterDate,StartWork,StopWork
it's same date type in database
and i can write full data and leave it empty by access
but with c#
i can write full data but i can't leave any (EnterDate,StartWork,StopWork)
because date type when change to string inside access database will work without any problem
but
order can't arrange column because it read data as string not as date

sorry for write more and sorry for bother you
-_-
ZaYeD1 8-Dec-21 12:41pm View    
my code
OleDbCommand cmd = new OleDbCommand();
cmd.Connection = connection;

cmd.CommandText = "insert into Start_Stop_Work (InvoiceNo,ID,ShortName,EnterDate,StartWork,StopWork) values ('" + txtInvoiceNo.Text + "','" + txtID.Text + "','" + txtShortName.Text + "','" + txtEnterToSaudi.Text + "','" + txtStartWorkDate.Text + "','" + txtStopWork.Text + "')";

connection.Open();
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Saved Done for " + txtID.Text);



my code is ok but i got the problem when i try save empty by C# in date type in access database