1
Answer

Easy problem...help anyone?

scott 0

scott 0

20y
2k
1
Help from anyone appreciated... I create a new Access DB using ADOX.CatalogClass, and then add tables to that DB via a Command object and "CREATE TABLE"... After creating several different tables, I want to define the relatsionships between the tables. What is the best way to do this and how? How do you load an entire DB of empty tables into a DataSet object? I thought the best way would be to bring the newly created empty DB into the application locally via a DataSet, then monkey around with the DataSet relatsions and then update the DB I am clueless at this point Scott
Answers (1)
0
Kunal Vaishya

Kunal Vaishya

NA 4.1k 266.1k 12y
Dear try this


Select UserCode,
Cast((DateDiff(mi,Starttime,EndTime) / 60) As Varchar(8)) + ':' +
Cast((DateDiff(mi,Starttime,EndTime) % 60) As Varchar(2)),Starttime As [In Time],EndTime  As [Out Time ]From tblLogIn




Accepted
0
Senthilkumar

Senthilkumar

NA 15.2k 2.4m 12y
Hi,

Note that when you use the HH will give the date difference in hours. But it needs something like entire different between two dates.

I think get the seconds or minutes and find the differences, so you can calculate the actual time different by diving the minutes.


0
Gohil Jayendrasinh

Gohil Jayendrasinh

NA 5k 2.8m 12y
Hi
use datediff like

select


sum(Datediff(hour,StartingDate,EndingDate)) from ItemDiscount