D
DS
I need this to run until it equales the value of Me.TxtDisplay...However
I can't get the syntax down correctly, the first line seems to be the
problem...any help appreciated.
Thanks
DS
Dim Sep As Integer
For Sep = Me.TxtDisplay <<<<<PROBLEM LINE
Forms!frmFXSeperateChecks!TxtChkAlias =
Forms!frmFXSeperateChecks!TxtChkAlias & "A"
'ADD NEW CHECKID
Forms!frmFXSeperateChecks!TxtCheckID = Nz(DMax("[CheckID]",
"tblChecks"), 0) + 1
CurrentDb.Execute "INSERT Into
tblChecks(CheckID,ChkCustomerID,ChkServer,TabID,ChkGuests,ChkTaxCodeID,ChkTypeID,ChkSepCheck,ChkOldCheckID,ChkAlias)
" & _
"VALUES('" & Forms!frmFXSeperateChecks.TxtCheckID & "'," &
Forms!frmFXSeperateChecks!TxtCustomerID & "," &
Forms!frmFXSeperateChecks!TxtServerID & "," &
Forms!frmFXSeperateChecks!TxtTabID & ",1," &
Forms!frmFXSeperateChecks!TxtTaxCodeID & ",1,True," &
Forms!frmFXSeperateChecks!TxtCheckID & ",'" &
Forms!frmFXSeperateChecks!TxtChkAlias & "')"
Next Sep
I can't get the syntax down correctly, the first line seems to be the
problem...any help appreciated.
Thanks
DS
Dim Sep As Integer
For Sep = Me.TxtDisplay <<<<<PROBLEM LINE
Forms!frmFXSeperateChecks!TxtChkAlias =
Forms!frmFXSeperateChecks!TxtChkAlias & "A"
'ADD NEW CHECKID
Forms!frmFXSeperateChecks!TxtCheckID = Nz(DMax("[CheckID]",
"tblChecks"), 0) + 1
CurrentDb.Execute "INSERT Into
tblChecks(CheckID,ChkCustomerID,ChkServer,TabID,ChkGuests,ChkTaxCodeID,ChkTypeID,ChkSepCheck,ChkOldCheckID,ChkAlias)
" & _
"VALUES('" & Forms!frmFXSeperateChecks.TxtCheckID & "'," &
Forms!frmFXSeperateChecks!TxtCustomerID & "," &
Forms!frmFXSeperateChecks!TxtServerID & "," &
Forms!frmFXSeperateChecks!TxtTabID & ",1," &
Forms!frmFXSeperateChecks!TxtTaxCodeID & ",1,True," &
Forms!frmFXSeperateChecks!TxtCheckID & ",'" &
Forms!frmFXSeperateChecks!TxtChkAlias & "')"
Next Sep