[AccessD] Form instances (AXP) and now AY2k3

Tortise tortise at paradise.net.nz
Sun Dec 7 13:32:23 CST 2003


If I may belatedly reply...(?)
Because how else can the user know the current content of the instance they wish to navigate back to, form(0), form(1) etc is not really helpful.  Or am I missing something here?
Expressed differently can one retrieve the current record(s) in a form instance to list the current records in each forms instance, and use a combo box to facilitate the user navigating to each form with record names they understand? 
Kind regards,
Dr David Hingston
Director
Chequers Software Limited
Wellington, New Zealand.
www.cheqsoft.com
Crafters of:
Break Reminder - For safe and efficient PC use - www.breakreminder.com
TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html
Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html
MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html
Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/
  ----- Original Message ----- 
  From: Charlotte Foust 
  To: accessd at databaseadvisors.com 
  Sent: Wednesday, April 16, 2003 9:22 AM
  Subject: RE: [AccessD] Form instances (AXP)


  When you use For Each frm in Forms, you're iterating through the members
  of the collection of open forms and you're going by index rather than by
  name.   That's the equivalent of Forms(0), Forms(1), etc., not
  Forms("frmMyForm"), although you're free to address them using the
  numeric index ... if you know which one you need. <VBG>   Why would you
  expect the caption to give you meaningful results?  That is not a
  difference in the name of the form, and anyhow you aren't looking for a
  different form, you just want a particular instance of that form; so if
  you can create a key that will get you there, why not use it?   

  Charlotte Foust

  -----Original Message-----
  From: Neal Kling [mailto:nkling at co.montgomery.ny.us] 
  Sent: Tuesday, April 15, 2003 11:04 AM
  To: accessd at databaseadvisors.com
  Subject: RE: [AccessD] Form instances (AXP)


  Sure, in our own collection, but that's not the Access Forms collection,
  which by the way does add a reference to the multiple forms, but all the
  instances of the same form share the same name.

  So, while we can't use Debug.Print Forms("frmMyForm").Caption and expect
  to get meaningful results, we can use 'For Each frm In Forms....'

  Neal Kling
  Lotus, isn't that some kind of fancy flower?


  -----Original Message-----
  From: Charlotte Foust [mailto:cfoust at infostatsystems.com]
  Sent: Tuesday, April 15, 2003 2:27 PM
  To: accessd at databaseadvisors.com
  Subject: RE: [AccessD] Form instances (AXP)


  Actually, you could use the name plus an incremental number as the key
  when you add the item to the collection, but it is natural that you
  can't address it the conventional way if you have multiple instances
  open.

  Charlotte Foust

  -----Original Message-----
  From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] 
  Sent: Tuesday, April 15, 2003 5:18 AM
  To: 'accessd at databaseadvisors.com'
  Subject: RE: [AccessD] Form instances (AXP)


  Thanks Neal. I have ADH 97. I'll try and wrestle it off my colleague!!

  -----Original Message-----
  From: Neal Kling [mailto:nkling at co.montgomery.ny.us] 
  Sent: 15-Apr-2003 14:01
  To: accessd at databaseadvisors.com
  Subject: RE: [AccessD] Form instances (AXP)


  I adapted code from ADH that worked well.  Basically you declare a form
  variable as Form_MyForm and work with it.  They use a collection to hold
  pointers to the instances of a form and code to add and remove items
  from the collection.
   
  The one hitch that I quickly hit was that you can't reference your form
  by name, in other words you can't use Forms!MyForm.
   
  If you don't have ADH I could probably put something together for you.
   
  Neal Kling
  Lotus, isn't that some kind of fancy flower?

  -----Original Message-----
  From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk]
  Sent: Tuesday, April 15, 2003 8:41 AM
  To: AccessD (AccessD at databaseadvisors.com)
  Subject: [AccessD] Form instances (AXP)



  Hi all 

  Does anyone know where there is any documentation on opening multiple
  instances of a form? I can't find anything in the help file or on MSDN.

  TIA 

  Roz 

  _______________________________________________
  AccessD mailing list
  AccessD at databaseadvisors.com
  http://databaseadvisors.com/mailman/listinfo/accessd
  Website: http://www.databaseadvisors.com
  _______________________________________________
  AccessD mailing list
  AccessD at databaseadvisors.com
  http://databaseadvisors.com/mailman/listinfo/accessd
  Website: http://www.databaseadvisors.com
  _______________________________________________
  AccessD mailing list
  AccessD at databaseadvisors.com
  http://databaseadvisors.com/mailman/listinfo/accessd
  Website: http://www.databaseadvisors.com
  _______________________________________________
  AccessD mailing list
  AccessD at databaseadvisors.com
  http://databaseadvisors.com/mailman/listinfo/accessd
  Website: http://www.databaseadvisors.com
  _______________________________________________
  AccessD mailing list
  AccessD at databaseadvisors.com
  http://databaseadvisors.com/mailman/listinfo/accessd
  Website: http://www.databaseadvisors.com



More information about the AccessD mailing list