0

I want labels displayed for two fields: [ID_Messpkt] and [Pb_corr], both numeric type I want to change the label for certain values of one of the fields: [Pb_corr]

I have two scipt that work individually but I don't know how to group it in one script. Does anyone know how to do that please?

Function FindLabel ( [ID_Messpkt], [Pb_corr] )
   FindLabel = [ID_Messpkt]& vbNewLine &[Pb_corr] 
 Function FindLabel ([Pb_corr] )
   if ([Pb_corr] = 49) then

     FindLabel = "<50"

   end if
 End Function

Found the easy solution, sorry


```
Function FindLabel ( [ID_Messpkt], [Pb_corr] )
   FindLabel = [ID_Messpkt]& vbNewLine &[Pb_corr] 

   if ([Pb_corr] = 49) then

     FindLabel = "<50"

   end if
 End Function

1

Solution:

Function FindLabel ( [ID_Messpkt], [Pb_corr] )
   FindLabel = [ID_Messpkt]& vbNewLine &[Pb_corr] 

   if ([Pb_corr] = 49) then

     FindLabel = "<50"

   end if
 End Function

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.