The Query I have is 

```
SELECT COUNT(Forename) FROM PrisonerInformation

```

I've be able to run this query to my MS Access database and put the results into a DataGridView but I really need to put it into a variable, so that I can then output it to a textfile and do other things with the results of the query.