Going to need a whole lot more information than that to be able to figure out something! What code do you have so far?
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
>> I don't know whats the code.
so it is difficult to help you. take a help from any search engine.
abu taher
Practically a Posting Shark
845 posts since Jul 2008
Reputation Points: 14
Solved Threads: 78
This is assuming (TMOAF) that you are saving every loan approved by a user/CO Maker in a database, you can get its recordcount as such -
Rs.Open "SELECT COMAKER FROM LoansApproved WHERE COMAKER = shaileqs90"
Text1.Text = Rs.Recordcount
'LoansApproved will be your database name and COMAKER will be the user that approved the loan.
Is this what you were looking for?
AndreRet
Senior Poster
3,922 posts since Jan 2008
Reputation Points: 334
Solved Threads: 350
The way this site works is
1) You ask a specific question that can be answered.
2) You post the code segment that you are working on that doesn't work
3) You explain what it's doing wrong
4) You explain what it should be doing
5) Add any additional details that will help those if us that didn't write the code understand the code and the task.
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
cn.Execute should be rs.open source, active connection, cursor type, lock type, options where...
source = "select *..."
active connection = cn
cursor type = [see help for this enum]
lock type = [see help]
options = optional parameter ususally left off
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296
in the code window, type in Dim rs As ADODB.Recordset and press F1. When the dialog comes up, select the VB one and the help file will tell you all the options and their meanings. Its a quick enough read...
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296