Avatar of Mohammad Alsolaiman
Mohammad Alsolaiman
Flag for Saudi Arabia asked on

error 2427 you entered an expression that has no value

Hi:
I had encountered this error, whenever is "Me.IqamaNo" is empty.
error 2427 you entered an expression that has no value
how could I get rid of it please.

Notice that if there is a value in "Me.IqamaNo" , it works good. And no error message appear.

   If Not IsNull(Trim(Me.IqamaNo)) And Not IsEmpty(Trim(Me.IqamaNo)) And Trim(Me.IqamaNo) <> "" Then
      For i = 1 To Len(Trim(Me.IqamaNo))
         Reports!rptIqamahRenewalForm.Controls("Iq" & i).Value = Nz(Mid(Me.IqamaNo, i, 1), 0)
      Next
   
   End If

Open in new window

Microsoft Access

Avatar of undefined
Last Comment
Mohammad Alsolaiman

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mohammad Alsolaiman

ASKER
nice trick
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy