Requerying data on differnet tab

  • Thread starter szag via AccessMonster.com
  • Start date
S

szag via AccessMonster.com

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.
 
J

Jeff Boyce

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.
 
S

szag via AccessMonster.com

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 said:
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.
 
J

Jeff Boyce

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 said:
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 said:
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.
 
S

szag via AccessMonster.com

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 said:
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]
 
J

Jeff Boyce

You might not be doing anything wrong ... remember, Cosmic Rays Happen...<g>

Jeff
szag via AccessMonster.com said:
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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top