Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

Question on Excel with VB 6.

$
0
0
Hello All,

I am here looking for some information on Excel integration with VB6.

Actually the question is quite generic and I would need you assistance in starting the coding.

Now, the scenario is that I have 2 tables in a database. 1. Users 2. LoginDetails.

The Users table contains the userid, passwd, empid and EmpName fields.
The LoginDetails table contains login, logout, shift(calculated automatically as 1,2 or 3 according to the login time), overtime, empid, EmpName fields.

I am not using any primary secondary key relationship. Here is what I intend to do.

I have an excel sheet in which I would like to print the names of the employees from the users table and their corresponding shift and overtime details from the LoginDetails table.


Below is an example as to how it should look.

1/1/2014 1/2/2014 1/3/2014
EmpID EmpName Shift Ovt Shift Ovt Shift Ovt
1 xyz 1 yes 1 yes 2 no
2 abc 2 no 2 no 1 yes

I am able to print the employee details from the Users table but I am getting stuck with the LoginDetails table.

Any help on this would be greatly appreciated.

Thank you in advance.

Viewing all articles
Browse latest Browse all 21273

Trending Articles