
Signature
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
> Yes. Make sure that the code in the command button click event
> opens the form using the acDialog WindowMode
[quoted text clipped - 4 lines]
>
> Forms!mainform!cboColors.requery. ' <- change names as required.
Okay, I'm a bit of a novice Access user here, so you're talking
just a bit over my head.
The line:
DoCmd.OpenForm stDocName, , , stLinkCriteria, , acDialog
Is this Visual Basic code that needs to be put on the command
button or is this part of the 'On Click' command? Right now
I have the 'On Click' pointing to a macro that opens 'frmColors'.
Then, the line:
Forms!mainform!cboColors.requery
Again, is this Visual Basic code? The Main form is called
frmKnifeList, and the name of the combo box is simply Color,
so should that command be:
Forms!frmKnifeList!Color.requery ?
And is that VB, or part of the 'On Click' command?
Thanks very much for your help.
Chris
Bob Quintal - 21 Jun 2007 23:39 GMT
> > Yes. Make sure that the code in the command button click
> > event
[quoted text clipped - 17 lines]
> I have the 'On Click' pointing to a macro that opens
> 'frmColors'.
Yes it's Visual Basic. If you are competent in creating a macro,
you should be easily capable of a little bit of code.
However, you can simply change the macro. The openform action
allows setting the Window mode. Open you macro in design mode
and change it.
> Then, the line:
> Forms!mainform!cboColors.requery
[quoted text clipped - 4 lines]
>
> Forms!frmKnifeList!Color.requery ?
Absolutely Correct!!!
You could modify the macro to add a requery action and put the
control name there. You wont need the formname nor the .requery.
> And is that VB, or part of the 'On Click' command?
Both... Once you've saved the macro, do save as...module.
It will create a module that contains the VB equivalent to the
macro. Examine that in design view to understand what different
macro actions translate to VB
> Thanks very much for your help.
>
> Chris

Signature
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com