Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Communicating between forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rsfishel@gmail.com - 15 Mar 2007 18:39 GMT
I am REALLY having trouble with this.  I have a small pop-up form with
a combo box.  Within this combo box are many part numbers.  There is a
"Go" button beside of the combo box.  What I am trying to get to
happen is that when the user picks a part number from the combo box,
then presses the "Go" button, that another form opens displaying the
records for that part number.  I really want to be able to use the
"Go" button instead of this happening autmatically when the user steps
off of the control.  My pop up form combo box is called Combo11.  The
"Go" button is Command3.  The field on my second form is called
PARTNUM.  So basically, choose a part number from the list, then open
the second form and match up the value in Combo11 with PARTNUM.  I
have been working on this all day long, and would really appreciate
some help.  Thank you :)
Rick Brandt - 15 Mar 2007 19:00 GMT
> I am REALLY having trouble with this.  I have a small pop-up form with
> a combo box.  Within this combo box are many part numbers.  There is a
[quoted text clipped - 9 lines]
> have been working on this all day long, and would really appreciate
> some help.  Thank you :)

What code are you using behind your button?  The command button wizard would
write that code for you.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

rsfishel@gmail.com - 16 Mar 2007 12:39 GMT
> rsfis...@gmail.com wrote:
> > I am REALLY having trouble with this.  I have a small pop-up form with
[quoted text clipped - 18 lines]
> Email (as appropriate) to...
> RBrandt   at   Hunter   dot   com

Rick, you were absolutely right.  The command button wizard took care
of this for me EXCEPT I was hoping that the original form would close
after pulling up the new form with records on it.  Any ideas?  Thanks
for your help.  I really appreciate it :)
Rick Brandt - 16 Mar 2007 12:42 GMT
> > rsfis...@gmail.com wrote:
> > > I am REALLY having trouble with this.  I have a small pop-up form
[quoted text clipped - 24 lines]
> after pulling up the new form with records on it.  Any ideas?  Thanks
> for your help.  I really appreciate it :)

Just add one line to what the wizard generated...

DoCmd.Close acForm, Me.Name

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

Hunter57 - 16 Mar 2007 01:09 GMT
On Mar 15, 1:39 pm, rsfis...@gmail.com wrote:
> I am REALLY having trouble with this.  I have a small pop-up form with
> a combo box.  Within this combo box are many part numbers.  There is a
[quoted text clipped - 9 lines]
> have been working on this all day long, and would really appreciate
> some help.  Thank you :)

You might try something like this:

Private Sub Command3_Click()

   Dim strCbo As Long
   strCbo = Me!Combo11

   DoCmd.OpenForm "YourFormName"
   Forms!YourFormName![YourPARTNUMControlName].SetFocus
   DoCmd.FindRecord (strCbo)

End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.