Hi!
I would like to ask some help please. I'am a newbie in here. I am using visual foxpro 9 and I would like to use count, to count the same records on the database and put the results to a field so that I can used as variable in a report.
Sample database:
acct |name | gender
---------------------
001 |henry | male
---------------------
001 |carl | male
---------------------
002 |john | male
---------------------
002 |kirk | male
---------------------
002 |love | female
I would like to get the result as:
acct |name | gender | Results
---------------------
001 |henry | male | 2
---------------------
001 |carl | male | 2
---------------------
002 |john | male | 3
---------------------
002 |kirk | male | 3
---------------------
002 |love | female | 3
Just need help for visual foxpro 9 commands. Thank you!
I would like to ask some help please. I'am a newbie in here. I am using visual foxpro 9 and I would like to use count, to count the same records on the database and put the results to a field so that I can used as variable in a report.
Sample database:
acct |name | gender
---------------------
001 |henry | male
---------------------
001 |carl | male
---------------------
002 |john | male
---------------------
002 |kirk | male
---------------------
002 |love | female
I would like to get the result as:
acct |name | gender | Results
---------------------
001 |henry | male | 2
---------------------
001 |carl | male | 2
---------------------
002 |john | male | 3
---------------------
002 |kirk | male | 3
---------------------
002 |love | female | 3
Just need help for visual foxpro 9 commands. Thank you!