E eran185 Registered User. Local time Today, 06:53 Joined May 11, 2007 Messages 55 Jun 30, 2007 #1 i have a query and i use "count" to get the number of items i have. then i want to see this number in a form , and i put text box that receive this number. the problem : i get "#Name?" in my text box why ?
i have a query and i use "count" to get the number of items i have. then i want to see this number in a form , and i put text box that receive this number. the problem : i get "#Name?" in my text box why ?
E eran185 Registered User. Local time Today, 06:53 Joined May 11, 2007 Messages 55 Jun 30, 2007 #2 hey there is a litlle example. look at the field "test" in the form Attachments example1.zip example1.zip 11.8 KB · Views: 118
stopher AWF VIP Local time Today, 14:53 Joined Feb 1, 2006 Messages 2,395 Jun 30, 2007 #3 Don't use an aggregate query to do the count. Instead just put the following in your field: =Count([קוד זיהוי]) Here I've counted the primary key field to ensure you get a full count of records. Or you can take a look at the DCount function which allows you to count with a given criterion. hth Stopher
Don't use an aggregate query to do the count. Instead just put the following in your field: =Count([קוד זיהוי]) Here I've counted the primary key field to ensure you get a full count of records. Or you can take a look at the DCount function which allows you to count with a given criterion. hth Stopher
E eran185 Registered User. Local time Today, 06:53 Joined May 11, 2007 Messages 55 Jun 30, 2007 #4 and if i want to do this field in another form (in that form , i dont have this field) ?
Brianwarnock Retired Local time Today, 14:53 Joined Jun 2, 2003 Messages 12,701 Jun 30, 2007 #5 Then you must base that form on the query.
stopher AWF VIP Local time Today, 14:53 Joined Feb 1, 2006 Messages 2,395 Jun 30, 2007 #6 What do you want to do exactly? If the records you want to count aren't in your datasource then use DCOUNT where you can specify the table whose records you want to count. Chris
What do you want to do exactly? If the records you want to count aren't in your datasource then use DCOUNT where you can specify the table whose records you want to count. Chris