473,396 Members | 2,039 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,396 software developers and data experts.

skip patterns thru a module....current forms problem

OK we have it so we can use tables to define skip patterns on our forms.
BUT we can only do one form.
Public Function skipPattern(currentFrm As Form, Optional currentCtl As Control =
Null) As Integer

the current form.

ouch.

this works fine as long as the controls are all on one form.
BUT when they cross to another form we are toast.

how can we pass me for a form that does not have the focus?

I can not see a way to do this. Has anyone done anything like it?

thanks big time for tips, ideas or even a link to some page that shows how or if
this can be done
thanks again for any help

Jerry

Nov 13 '05 #1
4 1763
rkc
sparks wrote:
OK we have it so we can use tables to define skip patterns on our forms.
BUT we can only do one form.
Public Function skipPattern(currentFrm As Form, Optional currentCtl As Control =
Null) As Integer

the current form.

ouch.

this works fine as long as the controls are all on one form.
BUT when they cross to another form we are toast.

how can we pass me for a form that does not have the focus?

I can not see a way to do this. Has anyone done anything like it?


Any form that is open is part of the Forms collection so you can
pass it to your function as Forms("FormName").

Nov 13 '05 #2
"rkc" wrote
Any form that is open is part of the
Forms collection so you can
pass it to your function as
Forms("FormName").


Spl. Note: a Form displayed in a Subform Control is not "Open" and thus not
in the Forms collection. It can be addressed as the Form property of the
Subform Control in which it is displayed.

And, if the form you want is not open, you can open it with

DoCmd.OpenForm formname,.....
Larry Linson
Microsoft Access MVP
Nov 13 '05 #3
On Tue, 28 Jun 2005 03:37:58 GMT, "Larry Linson" <bo*****@localhost.not> wrote:
"rkc" wrote
Any form that is open is part of the
Forms collection so you can
pass it to your function as
Forms("FormName").


Spl. Note: a Form displayed in a Subform Control is not "Open" and thus not
in the Forms collection. It can be addressed as the Form property of the
Subform Control in which it is displayed.

And, if the form you want is not open, you can open it with

DoCmd.OpenForm formname,.....
Larry Linson
Microsoft Access MVP

this sounds like what we are seeing...subforms are not open.

so I just need to keep track of controls on the form and when done, open the
next form on the list and go from there..

thanks will try it..
Jerry

Nov 13 '05 #4
sparks <sp****@anywhere.com> wrote in
news:h5********************************@4ax.com:
On Tue, 28 Jun 2005 03:37:58 GMT, "Larry Linson"
<bo*****@localhost.not> wrote:
"rkc" wrote
> Any form that is open is part of the
> Forms collection so you can
> pass it to your function as
> Forms("FormName").
Spl. Note: a Form displayed in a Subform Control is not "Open" and
thus not in the Forms collection. It can be addressed as the Form
property of the Subform Control in which it is displayed.

And, if the form you want is not open, you can open it with

DoCmd.OpenForm formname,.....


this sounds like what we are seeing...subforms are not open.


Subforms *are* open -- they are just open as sub-objects of other
forms, not as part of the forms collection itself.
so I just need to keep track of controls on the form and when
done, open the next form on the list and go from there..


You can pass a form reference to your code that refers to a subform.
The form reference for a subform is going to look something like
this, though:

Forms!ParentForm!SubformControlName.Form

That kind of reference can be passed to your function.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #5

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

Similar topics

4
by: Bobbak | last post by:
Hello All, I was wondering if it is possible to do this; I have a form that has number of text boxes that when a button is clicked it turns into combo boxes, simply by toggling the visibility to...
1
by: R Reyes | last post by:
Hello All, I'm always looking for ways to improve my code. Most of the time (whenever I'm working on a project) I write a bunch of functions. Then after the project is finished, I put all the...
6
by: Alpha | last post by:
Hi, I'm fixing a bug in an application and need to step thru the appl to find where it's occuring. The main project includs 33 other projects each having a .resx file in it. When I step through it...
2
by: Bert Szoghy | last post by:
Hello, I am missing something about Visual Basic .NET module variables and window close events. In the following code, after opening Form2 by clicking a button on Form1 and then closing...
24
by: John Salerno | last post by:
Since Python does so many things different, especially compared to compiled and statically typed languages, do most of the basic design patterns still apply when writing Python code? If I were to...
0
by: Gabriel Lozano-Morán | last post by:
Here is my problem description: We have a Java Portal from there a user can click on a certain aspx page. There is some kind of authentication mechanism that can be compared to a...
6
by: thomson | last post by:
Hi All, i do hae a solution in which i do have mulitple projects including Web Projects,, Depending on the functionality it gets redirected to different web projects and it is working fine, ...
7
by: MLH | last post by:
The Me object in A97 HELP is associated with forms. I've used Me.Name with success in a report's Open event code successfully. However, I seem to recall occasions where use of Me in report...
2
by: magix | last post by:
I have an drop down list let say: <SELECT name="id" id="id" OnClick="Skip()"> <option value="0"></option> <option value="1">Item 1</option> <option value="2">Item 2</option> <option...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.