Dcount to Currentuser

A

adriany

i have print button with Dcount below to count how many
records a current user input data for if/then statment.

intStore = DCount("[IndexID]", "table1", "[userID] =
CurrentUser")

if crrentuser input 3 data and prints
i just want users to see, YOU HAVE 3(intstore) TO PRINT.

but, i get 0 everytime
 
G

Gerald Stanley

Try something along the lines of
intStore = DCount("[IndexID]", "table1", "[userID] = '" &
CurrentUser() & "'")

Hope This Helps
Gerald Stanley MCSD
 
G

Guest

thks
-----Original Message-----
Try something along the lines of
intStore = DCount("[IndexID]", "table1", "[userID] = '" &
CurrentUser() & "'")

Hope This Helps
Gerald Stanley MCSD
-----Original Message-----
i have print button with Dcount below to count how many
records a current user input data for if/then statment.

intStore = DCount("[IndexID]", "table1", "[userID] =
CurrentUser")

if crrentuser input 3 data and prints
i just want users to see, YOU HAVE 3(intstore) TO PRINT.

but, i get 0 everytime
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top