Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 25th, 2002, 02:29 PM
mab mab is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 39 mab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Unhappy Access Form

Can someone help me? I have two forms in Access 2000. On the main form, frmMain, I have a button that opens another secondary form, frmSub. I did not want to use a sub-form in the main form. I want to be able to click the button on the main form to bring up the information on frmSub. I don’t know how to link the two forms without using an actual sub-form. Can someone help me with the code? The button on the main form has code to open frmSub: DoCmd.openform “frmSub”, acnormal. Can code be added to this to link the “id” field between both forms? Both forms use the same query.

Reply With Quote
  #2  
Old August 4th, 2004, 02:50 AM
sherrington sherrington is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 85 sherrington User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 4 m 52 sec
Reputation Power: 5
mab,

Yes, try:

DoCmd.openform “frmSub”, acnormal,,"ID =" & me.ID

NB if both forms use the same data source, make sure you save the record in fmMain before opening frmSub or you will lock yourself out!

Reply With Quote
  #3  
Old August 11th, 2004, 03:26 AM
coast man coast man is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 6 coast man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Id problem

I have a simlar problem where I have meny forms with buttons opening the next form. I need the ID to follow through from the first form. Only way I have been able to make this work somewhat so far is by setting the default Value in the next Forms ID as the Value in the previous ID. This does work but if you scroll with the mouse it opens a duplicate record.
Surely there is a simple way to do this.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Access Form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT