the following code does nothing
also tried this ="" still Nada
DougP
also tried this ="" still Nada
Code:
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = New ADODB.Connection
Set rs = New ADODB.Recordset
Dim SQLUpdateString As String
'get workbook name to open ADO connection
FileName = Application.ActiveWorkbook.Fullname
With cn
.Provider = "Microsoft.Jet.OLEDB.4.0"
.ConnectionString = "Data Source=" & FileName & ";" & _
"Extended Properties=Excel 8.0;"
.CursorLocation = adUseClient
.Open
End With
' Change all of the blanks in the Application ID column to UNK
SQLUpdateString = "UPDATE [Application Loading Combined$] SET [Application ID] " & _
" = 'UNK' WHERE [highlight #FCAF3E]IsEmpty([Application ID])"[/highlight]
' open connection to the Excel workbook and get data from String above
rs.Open SQLUpdateString, cn
Set rs = Nothing
Set cn = Nothing
DougP