Thanks Ray,
That worked. It's fine now.
As I was new to MySQLi I used Kate Ford's Tutorial to set this up, and if you read it it tells you to set up a recordset and then select your username etc from that, (see the section marked "General Tab" and the illustration that goes with it), I think it should be amended.
Anyway, thanks once again for your (very) quick help.