referencing active record in access form

  • 13 years ago
    This is cross-posted in the Access forum, but no one has offered any solution yet.

    What is the syntax for referencing the active record within the visual basic script of a form? In other words, I have a form that is displaying a given record. When the user clicks on a button, I would like one of the attributes of the record modified. I can't figure out what the syntax referencing the record that is currently being viewed is.

    In other words, within the VB code that controls the "whenclicked" (or whatever it's called) attribute of the button, i need to update the "is_discharged" (boolean datatype) to TRUE.

    Thanks,
    --b








  • 13 years ago
    dude i'm having a hard time pointin' out the problem but then i hope i get it right... anyway with regards to it you can always save the value of your primary key in a variable defined in your vb form, by that you can specify the records of which you wanted to modify.

    Regards

    Nerd_Pitch





Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The generation of random numbers is too important to be left to chance.” - Robert R. Coveyou