PDA

View Full Version : No Records in DB


CHAINLINK_2006
05-05-2005, 10:17 PM
Hey,

I connected to the DB like this:
Set rsP1000 = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT [G2P] FROM tblClients WHERE ClientID = '" & strID & "' AND GTime2 ='10:00a'"
rsP1000.Open strSQL, adoCon

I was wondering if the connection does not return any results, how do I display nothing. It keeps failing out because there is no record.

Thanks

Velox Letum
05-05-2005, 11:51 PM
[G2P] as a table name? I would suggest dropping the brackets.