G
Guest
Hello,
I have a form with command buttons that activates some codes to set a text
box with a certain price. This "price" text box can be changed to any price
the user wants to enter but the command buttons facilitates the convenience
of quickly choosing some default prices instead of entering it one by one for
a "what-if" scenario.
Everything is working great so far ... but of course ... now I want to
change something that works by adding more flexibility to the form. That is
to say ... I want those default command buttons to be changeable as well. I
would like to do this by having the code take the default price from a
default table instead of being hard coded.
The only code I have currently for my click event is:
Me.PDM.Value = 252.36
I created TableDefault with a record key="M" that can give me DefDM that
contains 252.36. The same record will give me the default for other command
buttons as well.
The form's record source is unrelated to the default table. I know how to
update a table from a form but I don't know how to assign another table's
data to a variable to be used by the form.
I hope this is clearer than mud :-}
Please help!
I have a form with command buttons that activates some codes to set a text
box with a certain price. This "price" text box can be changed to any price
the user wants to enter but the command buttons facilitates the convenience
of quickly choosing some default prices instead of entering it one by one for
a "what-if" scenario.
Everything is working great so far ... but of course ... now I want to
change something that works by adding more flexibility to the form. That is
to say ... I want those default command buttons to be changeable as well. I
would like to do this by having the code take the default price from a
default table instead of being hard coded.
The only code I have currently for my click event is:
Me.PDM.Value = 252.36
I created TableDefault with a record key="M" that can give me DefDM that
contains 252.36. The same record will give me the default for other command
buttons as well.
The form's record source is unrelated to the default table. I know how to
update a table from a form but I don't know how to assign another table's
data to a variable to be used by the form.
I hope this is clearer than mud :-}
Please help!