PC Review


Reply
Thread Tools Rate Thread

ComboBox Selection To open Form with recordset

 
 
=?Utf-8?B?TU1VU1NNQU4=?=
Guest
Posts: n/a
 
      1st Dec 2006
I am trying to Create a form with a combo box that once you select a name it
opens another form with the record information for that name.
I have the combo box set to select the name, but I can't get it to open the
other form (and of course since it won't open, there is no information)

I am sure this is a fairly simple task, but I have been out of Access for
about 2 years and I am very rusty.
Any help is very much appreciated.
Michael
 
Reply With Quote
 
 
 
 
Larry Linson
Guest
Posts: n/a
 
      1st Dec 2006
"MMUSSMAN" <(E-Mail Removed)> wrote

> I am trying to Create a form with a combo box that once
> you select a name it opens another form with the record
> information for that name. I have the combo box set to
> select the name, but I can't get it to open the other form
> (and of course since it won't open, there is no information)


If your Combo Box is named "Combo0" and has columns for "BoatID" and
"BoatData", and you want to open "frmBoats" which has "tblBoats" as its
RecordSource and the key of tblBoats is "BoatID", then put the following in
the AfterUpdate event of Combo0:

DoCmd.OpenForm "frmBoats", , , "[BoatId] = " & Me.Combo0

Larry Linson
Microsoft Access MVP


 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a form based on combobox selection =?Utf-8?B?U2FyYQ==?= Microsoft Access Forms 5 5th Nov 2007 11:39 PM
RecordSet for form determined by combo box selection =?Utf-8?B?UGF1bDNyZA==?= Microsoft Access Getting Started 1 7th Aug 2007 06:52 PM
How do you doubleclick on a recordset to open recordset in form vi =?Utf-8?B?Si4gS2VnZ2VybG9yZA==?= Microsoft Access Form Coding 3 4th May 2007 08:56 PM
Include form recordset's field in SQL for combobox on the form? Max Moor Microsoft Access Form Coding 3 29th Mar 2007 01:51 PM
Loading comboBox Using current recordset data in Continuous Form Angie Microsoft Access Forms 0 29th Sep 2004 07:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:50 AM.