![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a subform that I use in multiple places. It's data comes from an uneditable outside source (A sharepoint list with custom controls.) I'm using Access2003. I'd like to update it so that, when it goes to a null record, it displays/hides controls so I can link to the create or edit pages in Sharepoint. Normally, a simple task for me in VBA, etc. But, for the life of me, I can't figure out an "event" for triggering a subform to know when it's been told to go to a new record by its main form. I could do this in each main form. But, the idea of tracking down every requery and refresh I have in multiple forms seems silly... when all I want to do is make the subform trigger itself. My google searches have really failed on this one. Any ideas? Thanks, Jon |
#3
| |||
| |||
|
|
Hi, I have a subform that I use in multiple places. It's data comes from an uneditable outside source (A sharepoint list with custom controls.) I'm using Access2003. I'd like to update it so that, when it goes to a null record, it displays/hides controls so I can link to the create or edit pages in Sharepoint. Normally, a simple task for me in VBA, etc. But, for the life of me, I can't figure out an "event" for triggering a subform to know when it's been told to go to a new record by its main form. I could do this in each main form. But, the idea of tracking down every requery and refresh I have in multiple forms seems silly... when all I want to do is make the subform trigger itself. My google searches have really failed on this one. Any ideas? Thanks, Jon |
#4
| |||
| |||
|
|
Won't "If Me.NewRecord Then..." in the subform's On Current event work for you? Jon sjonceramic" <joncera... (AT) gmail (DOT) com> wrote in message news:41c93940-77ce-489f-84f0-3eb46392749d (AT) j13g2000pro (DOT) googlegroups.com... Hi, I have a subform that I use in multiple places. *It's data comes from an uneditable outside source (A sharepoint list with custom controls.) *I'm using Access2003. I'd like to update it so that, when it goes to a null record, it displays/hides controls so I can link to the create or edit pages in Sharepoint. *Normally, a simple task for me in VBA, etc. But, for the life of me, I can't figure out an "event" for triggering a subform to know when it's been told to go to a new record by its main form. I could do this in each main form. *But, the idea of tracking down every requery and refresh I have in multiple forms seems silly... when all I want to do is make the subform trigger itself. My google searches have really failed on this one. Any ideas? Thanks, Jon- Hide quoted text - - Show quoted text - |
#5
| |||
| |||
|
|
On May 5, 11:34*am, "Jon Lewis" <jon.le... (AT) cutthespambtinternet (DOT) com wrote: Won't "If Me.NewRecord Then..." in the subform's On Current event work for you? Jon sjonceramic" <joncera... (AT) gmail (DOT) com> wrote in message news:41c93940-77ce-489f-84f0-3eb46392749d (AT) j13g2000pro (DOT) googlegroups.com.... Hi, I have a subform that I use in multiple places. *It's data comes from an uneditable outside source (A sharepoint list with custom controls.) *I'm using Access2003. I'd like to update it so that, when it goes to a null record, it displays/hides controls so I can link to the create or edit pages in Sharepoint. *Normally, a simple task for me in VBA, etc. But, for the life of me, I can't figure out an "event" for triggering a subform to know when it's been told to go to a new record by its main form. I could do this in each main form. *But, the idea of tracking down every requery and refresh I have in multiple forms seems silly... when all I want to do is make the subform trigger itself. My google searches have really failed on this one. Any ideas? Thanks, Jon- Hide quoted text - - Show quoted text - I think Jon's got it for me on the OnCurrent Event of the subform. That triggers for SubForm VBA whenever I change something on my MainForm. Although, the "if" doesn't help.... it gives it multiple "current" triggers when I debug.print it. *Actually a good thing, it's helping because it actually then is helping me debug why this particular form keeps triggering itself for refreshes. I'll put my next question in a separate post. Thanks Jon and Salad! *How did I miss OnCurrent? *lol Jon- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |