Passing variables

O

OEB

This is a snippet of my code:

Public Sub ColorControl(FieldValue, FieldName)
Dim ctrl As Control
Dim StatusNumber As Long
StatusNumber = FieldValue
Set ctrl = Me!FieldName

Getting error because it can't find FieldName. When I debug I see that the
FieldName is being passed correctly, but it can't find it. My syntax is
probably wrong, but how do I fix it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top