T
taccea
Hello,
I am trying to run the code below 9 times:
If rsghtBonus_id!s_middle_data1 Is Null Then
' do nothing
Else
rsLineItems!LineItem1 = rsghtBonus_id!s_middle_data1
End If
The data fields are set appropriately to accomodate the following code:
For n = 1 To 9
If rsghtBonus_id!s_middle_data & n Is Null Then
' do nothing
Else
rsLineItems!LineItem & n = rsghtBonus_id!s_middle_data & n
End If
Next
The [ rsLineItems!LineItem & n ] above does not want to resove
to rsLineItems!LineItem1, rsLineItems!LineItem2, etc. I get an error that
says it is expecting
an [ = ] sign when I am typing the line. Why does it work for the
[rsghtBonus_id!s_middle_data & n ] field but not for the other since I don't
get the error when I type the [ If rsghtBonus_id!s_middle_data & n Is
Null Then ] line.
any guidance appreciated, as always.
taccea
I am trying to run the code below 9 times:
If rsghtBonus_id!s_middle_data1 Is Null Then
' do nothing
Else
rsLineItems!LineItem1 = rsghtBonus_id!s_middle_data1
End If
The data fields are set appropriately to accomodate the following code:
For n = 1 To 9
If rsghtBonus_id!s_middle_data & n Is Null Then
' do nothing
Else
rsLineItems!LineItem & n = rsghtBonus_id!s_middle_data & n
End If
Next
The [ rsLineItems!LineItem & n ] above does not want to resove
to rsLineItems!LineItem1, rsLineItems!LineItem2, etc. I get an error that
says it is expecting
an [ = ] sign when I am typing the line. Why does it work for the
[rsghtBonus_id!s_middle_data & n ] field but not for the other since I don't
get the error when I type the [ If rsghtBonus_id!s_middle_data & n Is
Null Then ] line.
any guidance appreciated, as always.
taccea