A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Requerying data on differnet tab



 
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2010, 06:16 PM posted to microsoft.public.access.forms
szag via AccessMonster.com
external usenet poster
 
Posts: 99
Default Requerying data on differnet tab

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/For...forms/201004/1

  #2  
Old April 23rd, 2010, 06:47 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Requerying data on differnet tab

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@uwe wrote in message
news:a6f82dcaf15e4@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/For...forms/201004/1



  #3  
Old April 23rd, 2010, 07:03 PM posted to microsoft.public.access.forms
szag via AccessMonster.com
external usenet poster
 
Posts: 99
Default Requerying data on differnet tab

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

  #4  
Old April 23rd, 2010, 08:18 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Requerying data on differnet tab

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@uwe wrote in message
news:a6f89700f6ce3@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



  #5  
Old April 23rd, 2010, 08:31 PM posted to microsoft.public.access.forms
szag via AccessMonster.com
external usenet poster
 
Posts: 99
Default Requerying data on differnet tab

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

  #6  
Old April 23rd, 2010, 11:17 PM posted to microsoft.public.access.forms
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Requerying data on differnet tab

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

Jeff
"szag via AccessMonster.com" u2885@uwe wrote in message
news:a6f95d5f6cbdc@uwe...
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



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.