D
Dan
I am pulling my hair out on this one. I have tried this statement with
variable and without. I have moved "" all over based on criteria I have
seen posted all over the web, but in the end I continue to get the same
error. "You canceled the previous operation". Please tell me if there is
something that you can see wrong with the code.
Dim FldNm, Box, var
Dim x As Integer
FldNm = "SL3Item"
Box = "SL3Item"
x = 1
Do While x <= 40
var = _
DLookup("[FldNm & x]", "[SL3NSNDetail]", _
"[ID] = '" & Forms![IssueForm]![cboWpnType1] & "'")
x = x + 1
Me.Controls(Box & x).Value = var
Loop
Thanks for the help,
variable and without. I have moved "" all over based on criteria I have
seen posted all over the web, but in the end I continue to get the same
error. "You canceled the previous operation". Please tell me if there is
something that you can see wrong with the code.
Dim FldNm, Box, var
Dim x As Integer
FldNm = "SL3Item"
Box = "SL3Item"
x = 1
Do While x <= 40
var = _
DLookup("[FldNm & x]", "[SL3NSNDetail]", _
"[ID] = '" & Forms![IssueForm]![cboWpnType1] & "'")
x = x + 1
Me.Controls(Box & x).Value = var
Loop
Thanks for the help,