473,385 Members | 1,341 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,385 software developers and data experts.

Multiple instances of Form - help me with Allen Browne's Sample

Hi,

I have uploaded "ClientMultiSample2k.zip" at ...

http://tech.groups.yahoo.com/group/MS_Access_Professionals/files/2_AssistanceNeeded/ClientMultiSample2k.zip

The file is basically Allen Browne's sample. I have tried to get it
customized for me.

frmClient:
-=-=-=-=-
The modification I've done to this form worked good. But when I added
a line on Current event its showing me run time error # 2450.

FYI : If its opened it directly it works, BUT when I try to open it
thru frmMain - there comes the problem.

Any help is appreciated.

Regards,

Ozair - Learning & Loving Ms-Access.
Jun 5 '08 #1
6 2191
NeoPa
32,556 Expert Mod 16PB
You really need to post the question as a question. Expecting someone to download and look at your database is not reasonable.

This also puts the extra work on their shoulders rather than you taking responsibility for it (which is not very respectful when you're asking for help). Please ask the question properly if you're still interested in getting assistance.

-ADMIN.
Jun 5 '08 #2
You really need to post the question as a question. Expecting someone to download and look at your database is not reasonable.

This also puts the extra work on their shoulders rather than you taking responsibility for it (which is not very respectful when you're asking for help). Please ask the question properly if you're still interested in getting assistance.

-ADMIN.
Hi NeoPa,

I apologize for not being able to follow the rules of this forum.
Of course I still need help, but to me it does not seem so easy to
explain what exactly I need.

Anyway thanks for your attention to my post.

regards,
Ozair - Loving & Learning Ms-Access
Jun 6 '08 #3
NeoPa
32,556 Expert Mod 16PB
Ozair, I didn't post that simply to tell you off. I was expecting you to select and post the relevant part of the issue so that anyone reading it doesn't need to go off looking elsewhere and downloading a potentially destructive file.

You seem to be saying that you're not able to do this, which I find confusing. It is a basic part of asking for help - especially on a forum. If this is true then I sympathise, but I don't think there's much we can do for you in those circumstances.
Jun 6 '08 #4
Hi NeoPa,

Your fear makes sense but I and most of my fellows do the this on the MS-AccessProfessionals forum at yahoo.

We have enough confidence in each other - I can realize that I am newbie here so you might consider me a spammer which I do not mind.

But if you still have something to help you need to download the file which I am talking about. For a trustworthy website (at least for me is) www.allenbrowne.com

I am using his sample for managing multilple instances of a form.

what I've wanted to accomplish is.
- A continuous form (frmMain) that has records of customers.
- Another form (frmClient) sort of detail for the customers in single form view.

- From the frmMain I wanted to open instance of frmClient filtered on a record
selected in frmMain.

- leave both the forms opened.

Then I will select some other record in frmMain and try to open
frmClient - the same way I did earlier.
This will create another instance of frmClient
with new record while the previously opened frmClient still shows its own record.

- It all works well.
- Then I added on current event of frmClient
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Current()
  2.     Forms("frmClient")!Address = Forms("frmClient")!ClientID & Forms("frmClient")!Surname
  3. End Sub
there comes the problem.
but fortunately another MVP Bill Mosca the moderator of that Yahoo group
suggested me this....
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Current()
  2.     me.Address = me.ClientID & me.Surname
  3. End Sub
may be I need to stick with the group / forum where people know me and they have a little trust in me.

Any way I am still thankful to you since you're helping Access community.

very best regards.
Ozair - Learning & Loving Ms-Access.
Jun 7 '08 #5
NeoPa
32,556 Expert Mod 16PB
Ozair, there are many reasons why rules are made up. I don't want to go into any detail here, but if you're really interested I'm happy to explain any rule you may find confusing.

I wouldn't presume to criticise how other forums run themselves (however my views may differ from theirs), but we make our own rules here obviously.

As a new member you must surely realise that we have no reason to trust you (none to mistrust either). Maybe, after some more interaction we may get to trust you some more, but we still would not encourage you to post your questions without phrasing them clearly in the thread, as that would give very little value to the thread. Who wants to search for a solution only to find it only makes sense when you go to the trouble to download (with associated exposure) a linked question.

PS. We trust www.allenbrowne.com here right enough.
Jun 9 '08 #6
NeoPa
32,556 Expert Mod 16PB
Multiple copies of the same form is possible, but quite complicated and easy to trip up on. I would have suggested exactly the same change that Bill did. In fact, I would go further and suggest that you change any code that you have with explicit references to the instance of the form the code is related to, to use Me. (or sometimes Me!) instead.

Referencing particular instances (only relevant when multiple instances are opened) involves (to the best of my recollection - I don't really play there much) derivatives of the name. Forms("FormName") only references the default instance - whereas, Me always refers to the instance associated with the code.

I'm assuming from your last reply that you now have what you need? If not, let us know what your problem(s) is.
Jun 9 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Doug | last post by:
I have your typically form/subform. You enter the account number in a textbox and select whether you want to see the detail or summary information on the main form. Both fields I want to filter...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
3
by: Hp | last post by:
Hello, Is it possible to have more than one record from the same table open on the screen using forms? If you have an contact list for example and want to check a phone number whilst editing an...
12
by: (Pete Cresswell) | last post by:
I know I can open many instances of a given form, but I've never done it. Now I'm analyzing an application where that seems like just the ticket: Many investment funds, *lots* of data points for...
8
by: Zlatko Matić | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
5
by: David W. Fenton | last post by:
I'm blanking out on this one. In an old applicaiton, I am implementing a new feature to allow the user to open multiple instances of a main form. I've got that working, using the code for this...
19
by: davidgordon | last post by:
Hi, I need some pointers/help on how to do the following if it possible: In my access db, I have the following: Tables: Products, Sub-Assembly, Product-Pack Table, Products
6
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
16
by: blad3runn69 | last post by:
can anyone point me in the right direction re: handling multiple instances of a form opened from selected records in a search form I can get multiple forms thanks to allen browne & msdn howto...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.