linked linked linkedin whatsapp remove
Feedback

VBA Quiz VBA

You want to count how many records for a given customer based on CustomerID which is of field type short text in table tblCustomer. The customer id we want the count for is 123-AC. We are using the domain aggregate function DCount and assign it to an integer variable intC what is the correct syntax.

intC = DCount("*","tblCustomer","[CustomerID] = " & 123-AC)
intC=DCount("123-AC","tblCustomer","[CustomerID]")
intC = DCount("tblCustomer","*","Me.CustomerID = 123-AC")
intC = DCount ("*","tblCustomer","[CustomerID] = ' & 123-AC & "'")
Syntax is incorrect can't save in an integer variable if you are counting on a field type of short text.

Answer:
intC = DCount ("*","tblCustomer","[CustomerID] = ' & 123-AC & "'")

Note: This Question is unanswered, help us to find answer for this one