what am i doing wrong ????
VB Code:
Set cnn = New ADODB.Connection strCnn = ADO_PROVIDER & DATA_SOURCE & App.Path & DBNAME cnn.Open strCnn Set rst = New ADODB.Recordset Set cmd.ActiveConnection = cnn cmd.CommandText = "tblFirstn" cmd.CommandType = adCmdTable Set rst = cmd.Execute Debug.Print rst.RecordCount




Reply With Quote