Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Forms > Command Button ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 44652 of 46474
Post > Topic >>

Command Button to open form to specific record

by =?Utf-8?B?Sm9uIE0u?= <JonM@[EMAIL PROTECTED] > Aug 7, 2008 at 08:21 AM

Hi potential lifesavers, I have a form with a subform in it, frm1 and 
subfrm1.  frm1 displays a product, subfrm1 displays all customers who have

ordered that product in datasheet view. frm1 has a command button that
runs a 
macros to open a form called Customers.  Customers displays all of the 
customers info, address, etc. frm1 is linked to subfrm1 by productID and 
subfrm1 is linked to Customers by customerID.  My command button will only

open the form Customers, I would like it to open customers to the specific

record based on the record currently selected in the subform.  Any 
suggestions on this?  I am sure there is a way to either change my my
macro 
to include a where condition or add code to affect it.  I tried using this

code but got an error saying the field CustomerID couldn't be found:

DoCmd.OpenForm "Customers",,,"CustomerID = " & Me!CustomerID.Value

I assume this is because CustomerID is not a field on frm1, but I don't
know 
how to get it routed through the subform and you know what they say about 
those who assume.  Any help is greatly appreciated.  Thanks
-- 
Jon M.
 




 4 Posts in Topic:
Command Button to open form to specific record
=?Utf-8?B?Sm9uIE0u?= <  2008-08-07 08:21:01 
Re: Command Button to open form to specific record
"ruralguy via Access  2008-08-07 15:37:46 
RE: Command Button to open form to specific record
=?Utf-8?B?VGFs?= <Tal@  2008-08-07 09:19:01 
RE: Command Button to open form to specific record
=?Utf-8?B?Sm9uIE0u?= <  2008-08-07 09:46:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:10:09 CST 2008.