Guest_imported
New member
- Jan 1, 1970
- 0
Dim duration As OptionGroup
Dim duratDat As Integer
duration = Me.duration
duratDat = Me.DataDuration
If duration = 1 Then
Forms![frmStore].[Days] = duratDat
Else
If duration = 2 Then
Forms![frmStore].[Weeks] = duratDat
Else
If duration = 3 Then
Forms![frmStore].[Months] = duratDat
End if
** it told me that "Object variable or with block variable not set" what's that??? i tried to use Select Case also, but the same problems occur. is it correct to recognize the "option 1" as if duration = 1? thanks
Dim duratDat As Integer
duration = Me.duration
duratDat = Me.DataDuration
If duration = 1 Then
Forms![frmStore].[Days] = duratDat
Else
If duration = 2 Then
Forms![frmStore].[Weeks] = duratDat
Else
If duration = 3 Then
Forms![frmStore].[Months] = duratDat
End if
** it told me that "Object variable or with block variable not set" what's that??? i tried to use Select Case also, but the same problems occur. is it correct to recognize the "option 1" as if duration = 1? thanks