[RESOLVED] ADO VB6 Access DB
ok VB 6 with a Access Database using ADO
I have an autonumber fields which puts my records in the order i require them.
I just need pointing in the right direction, wot function to look at etc. What i need to do it, make sure that a few fields are the same and then give me whats in another field and then check the whole database.
Example.
Field "Type" to be "Turbo NL"
Field "Entry Fee" to be "6.00"
then for all the records that have them two (both that is) i want to know whats in the field called "Placed"
Hope this is clear.
Re: [RESOLVED] ADO VB6 Access DB
I suspect this line needs to be altered
Code:
rs.Open "SELECT Count(*) from tblData where Type = 'NL Holdem Turbo'AND Entry = '6.00'", cn, adOpenForwardOnly
in:
VB Code:
rs.Open "SELECT Count(*) from tblData where Type = 'NL Holdem Turbo AND Entry = '6.00' And Placed = 1" ', cn, adOpenForwardOnly
To count the number of placed items with the value 1
edit removed syntax error