Hi,
I've got a database with a DCount on the opening screen showing the user how many "current" patients there are.
Alongside, I have a button marked "current patients", which opens a form showing these records. So the display looks something like:
25 [Current patients]
This works fine, but I think it would be more elegant to have the value on the button itself, so it looked like:
[ 25 current patients ] ... but obviously the value would need to change.
I've tried entering =DCount("[PatientID]","qryCurrentPatients")&" current patients" as the button caption, but it just displays that formula as text.
Is what I'm trying to do possible? I'm only vaguely familiar with coding, but is there something like Form.button.caption = DCount etc etc.?
The other possible approach is to put a transparent button over the both the DCount value and a label, but I'd really like to make it look and feel like a button.
I've got a database with a DCount on the opening screen showing the user how many "current" patients there are.
Alongside, I have a button marked "current patients", which opens a form showing these records. So the display looks something like:
25 [Current patients]
This works fine, but I think it would be more elegant to have the value on the button itself, so it looked like:
[ 25 current patients ] ... but obviously the value would need to change.
I've tried entering =DCount("[PatientID]","qryCurrentPatients")&" current patients" as the button caption, but it just displays that formula as text.
Is what I'm trying to do possible? I'm only vaguely familiar with coding, but is there something like Form.button.caption = DCount etc etc.?
The other possible approach is to put a transparent button over the both the DCount value and a label, but I'd really like to make it look and feel like a button.