S
shanesullaway via AccessMonster.com
A2K
I have four unbound controls that I am using to give the user a summary based
off the Task List. An example of one of the controls would be, how many Tasks
matching today's date. I am doing this by using an IIF statement in the
unbound controls Control Source.
Here's the IIF statement:
Code:
------------------------------------------------------------------------------
--
=IIf([newrecord],"",DCount("TaskID","Tasks","EmployeeID=" & [EmpID] & " AND
[DueDate] = #" & Date() & "# AND IsComplete = False") & " Task(s) For Today")
------------------------------------------------------------------------------
--
I read an article today that talked about how DCount slows down a forms
performance and they recommended changing DCounts to your own functions (like
an SQL statement). If this is true I was wondering if someone would convert
the above IIF statement into an SQL statement, so I can see what it would
look like. I should be abl to figure out the other three.
If anyone disagrees with the article I read, please feel free to say so. The
thing that I have noticed is that it does take a couple of seconds for the
DCount to fill the unbound text control. I have about 15 command buttons on
this form and when I tab from one command button to the other, the unbound
controls have a flash to them. (go blank, wait about a second or two an then
fill)
TIA,
Shane
I have four unbound controls that I am using to give the user a summary based
off the Task List. An example of one of the controls would be, how many Tasks
matching today's date. I am doing this by using an IIF statement in the
unbound controls Control Source.
Here's the IIF statement:
Code:
------------------------------------------------------------------------------
--
=IIf([newrecord],"",DCount("TaskID","Tasks","EmployeeID=" & [EmpID] & " AND
[DueDate] = #" & Date() & "# AND IsComplete = False") & " Task(s) For Today")
------------------------------------------------------------------------------
--
I read an article today that talked about how DCount slows down a forms
performance and they recommended changing DCounts to your own functions (like
an SQL statement). If this is true I was wondering if someone would convert
the above IIF statement into an SQL statement, so I can see what it would
look like. I should be abl to figure out the other three.
If anyone disagrees with the article I read, please feel free to say so. The
thing that I have noticed is that it does take a couple of seconds for the
DCount to fill the unbound text control. I have about 15 command buttons on
this form and when I tab from one command button to the other, the unbound
controls have a flash to them. (go blank, wait about a second or two an then
fill)
TIA,
Shane