From: szag via AccessMonster.com on 23 Apr 2010 13:16 I have looked through other posts but can't seem to get this to work: I have a main form "F_Jobs". Then a tab control on this main form. On page 1 of the tab control I have a form F_AddJobs. When I make a selection from a control ("cboxJobs")on this F_AddJobs form I want a the form on Page 2 of the tab control (F_JobsQuote) to requery. F_JobsQuote is based on a query that uses the selection I referred to on the F_AddJobs - cboxJobs control. I am trying to add code that will requery the this F_JobsQuote form each time a different selection is made on cboxJobs. -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201004/1
From: Jeff Boyce on 23 Apr 2010 13:47 Care to post the code? Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudocode included in this post is offered "as is", with no guarantee as to suitability. You can thank the FTC of the USA for making this disclaimer possible/necessary. "szag via AccessMonster.com" <u2885(a)uwe> wrote in message news:a6f82dcaf15e4(a)uwe... >I have looked through other posts but can't seem to get this to work: > > I have a main form "F_Jobs". Then a tab control on this main form. > > On page 1 of the tab control I have a form F_AddJobs. When I make a > selection > from a control ("cboxJobs")on this F_AddJobs form I want a the form on > Page 2 > of the tab control (F_JobsQuote) to requery. > > F_JobsQuote is based on a query that uses the selection I referred to on > the > F_AddJobs - cboxJobs control. I am trying to add code that will requery > the > this F_JobsQuote form each time a different selection is made on cboxJobs. > > -- > Message posted via AccessMonster.com > http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201004/1 >
From: szag via AccessMonster.com on 23 Apr 2010 14:03 Get an Object doesn't support this property or method error... Private Sub cboxJobNo_Exit(Cancel As Integer) Forms.[F_Jobs].[F_JobsQuote].Form.Requery End Sub Jeff Boyce wrote: >Care to post the code? > >Regards > >Jeff Boyce >Microsoft Access MVP > >>I have looked through other posts but can't seem to get this to work: >> >[quoted text clipped - 11 lines] >> the >> this F_JobsQuote form each time a different selection is made on cboxJobs. -- Message posted via http://www.accessmonster.com
From: Jeff Boyce on 23 Apr 2010 15:18 I'm confused ... What is the name of the form you wish to requery? (by the way, if this code is, as it appears, behind a control on a form, the Access 'shortcut' for saying "the form I'm in right now" is: Me.Requery Good luck! Regards Jeff Boyce Microsoft Access MVP -- Disclaimer: This author may have received products and services mentioned in this post. Mention and/or description of a product or service herein does not constitute endorsement thereof. Any code or pseudocode included in this post is offered "as is", with no guarantee as to suitability. You can thank the FTC of the USA for making this disclaimer possible/necessary. "szag via AccessMonster.com" <u2885(a)uwe> wrote in message news:a6f89700f6ce3(a)uwe... > Get an Object doesn't support this property or method error... > > Private Sub cboxJobNo_Exit(Cancel As Integer) > Forms.[F_Jobs].[F_JobsQuote].Form.Requery > End Sub > > > > > Jeff Boyce wrote: >>Care to post the code? >> >>Regards >> >>Jeff Boyce >>Microsoft Access MVP >> >>>I have looked through other posts but can't seem to get this to work: >>> >>[quoted text clipped - 11 lines] >>> the >>> this F_JobsQuote form each time a different selection is made on >>> cboxJobs. > > -- > Message posted via http://www.accessmonster.com >
From: szag via AccessMonster.com on 23 Apr 2010 15:31 Thanks. Jeff - does this help: The main form is F_Jobs There is a tab control in this main form I am in F_AddJob form (tab page 1) I update cboxJobs control (in F_AddJob form) I want F_JobsQuote (form on tab page 2) to requery (using the result of cboxJobs in an underlying query of F_JobsQuotes) The code included has worked before - just don't know what I am doing wrong. Jeff Boyce wrote: >I'm confused ... > >What is the name of the form you wish to requery? > >(by the way, if this code is, as it appears, behind a control on a form, the >Access 'shortcut' for saying "the form I'm in right now" is: > > Me.Requery > >Good luck! > >Regards > >Jeff Boyce >Microsoft Access MVP > >> Get an Object doesn't support this property or method error... >> >[quoted text clipped - 15 lines] >>>> this F_JobsQuote form each time a different selection is made on >>>> cboxJobs. -- Message posted via http://www.accessmonster.com
|
Next
|
Last
Pages: 1 2 Prev: Link Forms with multiple fields Next: combobox rowsource "All" if more than one in list |