Setting a value from a variable used in VB code into a field on an Access form

  • Thread starter Thread starter Eric
  • Start date Start date
E

Eric

I have created some code for a form in Access using Visual Basic event
procedure. This code includes a variable that contains a value that I
want to place in a field on the form. The VB code defines and calls a
..DLL. All of that works fine. I just need to know how to place that
value in the field on my form, using the Visual Basic code. Do I use
the Set command or something else?
 
Eric,

The command line is:
Forms("FormName").Controls("ControlName") = variable

where of course you will have to change FormName, ControlName and variable
to the actual form, control and variable names.

HTH,
Nikos
 
Nikos,

Thank you very much! That's just the code I was looking for. It worked very well.

Eric
 
Back
Top