473,398 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Parameter Pop-up when changing subform

Hi,
guess I am overlooking something,
using a list, I change what info is displayed on a form that has 3
subforms.
after selecting the topic to display, the subform names and links are
read from a table, then the master form is updated using the info

'all values = string variable
Me.Sfrm_3.SourceObject = form_3
Me.Sfrm_2.SourceObject = form_2
Me.Sfrm_1.SourceObject = form_1
Me.Title_1.Caption = form1_txt
Me.Title_2.Caption = form2_txt
Me.Title_3.Caption = form3_txt
Me.Sfrm_3.LinkMasterFields = Link_2_Parent
Me.Sfrm_3.LinkChildFields = Link_2_Child
Me.Sfrm_2.LinkMasterFields = Link_1_Parent
Me.Sfrm_2.LinkChildFields = Link_1_Child

my problem is it keeps asking through pop-up windows the parameter for
the last used link-field data.
have tried setting linkchildfield and parent to null or nothing or ""
before the update.
It works fine if I just hit enter each time, the info is correct in
the end, but apparently the links are still there during the change
over.

what do I need to add to be able to change the subforms and link-
fields on an open form without the popup parameter windows?

thanks
Jun 27 '08 #1
2 1839
I seen this problem.

Try:
Me.Sfrm_3.SourceObject = form_3
Me.Sfrm_3.LinkMasterFields = ""
Me.Sfrm_3.LinkChildFields = ""

So, right after you assing the form object, kill the link master/child...

I also found that if I modify the sub-forms sql direct, then again, I had to
go:

Me.subTourFriends.Form.frmTourBuses.Form.RecordSou rce = strSql
Me.subTourFriends.Form.frmTourBuses.LinkChildField s = ""
Me.subTourFriends.Form.frmTourBuses.LinkMasterFiel ds = ""

It's been awhile since I've done this, but if my memory serves me correct
the problem was that if you have a relationship setup in the tables, MS
access tries to do you a favor and sets the link master child for you based
on those relationships (and that's not necessary what you want).

In my above example, note how I had to kill master/ child settings **after**
I set that SQL.

So, if the 1st above suggestion of clearing out the link master don't work,
then:

You could try to ensure the sub forms data source is
NOT already set (leave it blank).

Thus, you go:

Me.Sfrm_3.SourceObject = form_3
me.Sfrm_3.Form.RecordSource = "your sql for form goes here"
Me.Sfrm_3.LinkMasterFields = Link_2_Parent
Me.Sfrm_3.LinkChildFields = Link_2_Child

I'm quite sure the above (last) suggestion will work with a blank
datasource. (not exactly a pretty work around, but I think it will solve
this And tell someone else jumps into this thread with a better suggestion).
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com

Jun 27 '08 #2
Thanks,

used the ideas, had to modify it a little to get it to work,
Usual Friday, could not think of anything else, thanks again for the
idea.

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Roy Smith | last post by:
In the recent "transforming a list into a string" thread, we've been discussing the fact that list.pop() is O(1), but list.pop(0) is O(n). I decided to do a little timing experiment. To be sure,...
4
by: Amir Michail | last post by:
Hi, I think it would be useful to delete a name of a parameter object as the object is passed to a function: dosomestuff(del a) instead of dosomestuff(a)
7
by: Michael Birkmose | last post by:
Hi, Using gcc the following is possible: int some_function(struct local_struct { int member;} a); This function takes one parameter "a" of the type struct local_struct. This type is...
19
by: hpy_awad | last post by:
What should I do to avoid the message : parameter 'argc' is never used My program is down : *-------------------- /* Book name : The prodessional programmers guide to C File name ...
11
by: Vijay Kumar R Zanvar | last post by:
> In <pan.2004.04.22.04.06.05.969827@bar.net> "Mac" <foo@bar.net> writes: > > >Is it legal to declare errno after you've included errno.h? > > > >For example: > > > >#include<errno.h> > > >...
16
by: Simon | last post by:
Hi all, I think I've seen someone passing an emumeration in code before. Can anyone tell me if thats possible and why i would want to. Many thanks Kindest Regards
25
by: Nicholas Parsons | last post by:
Howdy Folks, I was just playing around in IDLE at the interactive prompt and typed in dir({}) for the fun of it. I was quite surprised to see a pop method defined there. I mean is that a...
4
by: j_depp_99 | last post by:
The program below fails on execution and I think the error is in my pop function but it all looks correct.Also could someone check my code as to why my print function is not working? I havent...
2
MMcCarthy
by: MMcCarthy | last post by:
Hi guys Can I ask you to pop over to the Access forum and have a look at this question. Although the query being dealt with is an Access sql query the parameter that is causing the problem is...
11
by: J Kenneth King | last post by:
I recently encountered some interesting behaviour that looks like a bug to me, but I can't find the appropriate reference to any specifications to clarify whether it is a bug. Here's the example...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.