What im trying to do is to refer to the total number of records in a table using count function >.< in VBA because i need to use >.< the value of the total number of records for a calculation in VBA thx
PercentageEbay = DCount("[Cust_id]", "Order", "[Cust_id] = 8") * 100 / OpenRecordset("tblOrder").Count
Now basically what it does is count the number of records with cust_id =to 8 in the order table. What i want it to do is then times this by 100 and divide by the total number of records in the order table to give me a percentage
thx a lot