D
DS
Once again REDACT() is a function pointing to the external database.
Is this syntax correct?
Thanks
DS
Set dbs = REDACT()
Set rst = dbs.OpenRecordset("SELECT * FROM tblChecksTMP IN '" & REDACT() &
"' WHERE tblChecksTMP.ChkOldCheckID = " &
Forms!frmPadDivider!TxtDPOldSalesID & "", dbOpenDynaset)
With rst
Do Until .EOF
For i = 1 To Me.TxtDivideCheck
portion(i) = myNumDivByX
.Edit
!ChkTotal = portion(i) & vbCrLf
.Update
.MoveNext
Next i
Loop
End With
rst.Close
Set rst = Nothing
dbs.Close
Set dbs = Nothing
Is this syntax correct?
Thanks
DS
Set dbs = REDACT()
Set rst = dbs.OpenRecordset("SELECT * FROM tblChecksTMP IN '" & REDACT() &
"' WHERE tblChecksTMP.ChkOldCheckID = " &
Forms!frmPadDivider!TxtDPOldSalesID & "", dbOpenDynaset)
With rst
Do Until .EOF
For i = 1 To Me.TxtDivideCheck
portion(i) = myNumDivByX
.Edit
!ChkTotal = portion(i) & vbCrLf
.Update
.MoveNext
Next i
Loop
End With
rst.Close
Set rst = Nothing
dbs.Close
Set dbs = Nothing