Re: macro set value subform record source error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



That looks funny... what exactly are you trying to do? Are you asking the user to type in the name of a query, or an SQL expression, or what?

baffled wrote:
Using a macro and the on click event to set the record source of an unlinked subform based on a value in the textbox control [NewValue] in the main form. Getting message " You tried to run a visual basic procedure to set a property or method for an object. However, the component does not make the property or method available for Automation Operations."

action     SetValue
item      [Forms]![frmMain]![frmSubform].[Form].[RecordSource]
expression           [NewValue]

What am I doing wrong?
.


Quantcast