Automation object error


V

Vicky

Hello,

I'm getting the "object doesn't contain the automation object" error.
I'm trying to run a macro that places a value from a table into a form.
It works with 1 of the 2 tables, but the other one gives this error.

My macro is this:

OpenForm
OpenTable
FindRecord
SetValue (item: [Forms]![Form1]![Accessoires] exp: [Accessoires1])
Close (the table)
SetValue (form to form value setting)
((So far the macro doesn't give any problems))
OpenTable
FindRecord
SetValue (item: [Forms]![Form1]![TotaalPrijs] exp: [Prijs])

And when I run it, it gives the error: "object doesn't contain the
automation object 'Prijs'"
So I'm kinda confused as I don't see the difference between the first
SetValue and the second. Both fields in the exp. are number fields.
If any other information is required, please let me know.
 
Ad

Advertisements


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