G
Guest
I am having a problem with a macro.
I have a database for my artworks. props were used in the creation of some
of these.
When I have the details of an artwork on screen (as a form), On that form I
click on a button to see all props from a specific props box. Each prop
listed has a add prop used button. This button launches a macro.
This macro uses the "set" action to take the value of the record number from
the artwork details form and insert in a props-used table. It then takes the
value of prop number from the prop record the button was pressed in and
inserts it in the props-used table.
But when I try it I get an "action failed" screen, and when I click "halt" I
get the following error:
"The object doesn't contain the Automation object 'tables' "
Heres the macro colde:
Action= setvalue
item= [Forms]![artworksdetails]![record number]
expression= [tables]![prop-use]![record number]
Action= setvalue
item= [Forms]![props-in-box-query]![prop-number]
expression=
![prop-use]![prop-number]
The table I am trying to create records in via this macro sequence just had
"record number" and "prop-number" fields (as per the ms access help) as a
artwork can use many props and a prop can be used in more than one artwork.
What am I doing wrong?
Does anyone know how to do what I am trying to do?
I have a database for my artworks. props were used in the creation of some
of these.
When I have the details of an artwork on screen (as a form), On that form I
click on a button to see all props from a specific props box. Each prop
listed has a add prop used button. This button launches a macro.
This macro uses the "set" action to take the value of the record number from
the artwork details form and insert in a props-used table. It then takes the
value of prop number from the prop record the button was pressed in and
inserts it in the props-used table.
But when I try it I get an "action failed" screen, and when I click "halt" I
get the following error:
"The object doesn't contain the Automation object 'tables' "
Heres the macro colde:
Action= setvalue
item= [Forms]![artworksdetails]![record number]
expression= [tables]![prop-use]![record number]
Action= setvalue
item= [Forms]![props-in-box-query]![prop-number]
expression=
The table I am trying to create records in via this macro sequence just had
"record number" and "prop-number" fields (as per the ms access help) as a
artwork can use many props and a prop can be used in more than one artwork.
What am I doing wrong?
Does anyone know how to do what I am trying to do?