Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form: 1st record showing before Combo Box selection

Status
Not open for further replies.

DajTwo

Technical User
Jul 17, 2008
157
US
Hi all

Access 2003, front end / back end config.

The record is selected using a combo box in a form populated by a query.

All works well however is there a way to prevent the 1st record to show on the form when it opens before the user use the combo box to make it selection?

I hope this is clear..

Thanks
 
Not much to work with here in the way of details. It sounds like you have a bound form, and when it opens, you use a combo-box to make a selection, which then creates a filter, which is then applied to the form recordset.

Just my guess.

In this case, I'd say, no, there is no way to not make the first record show. If you open a bound form, it opens... bound....

Sounds like what you need to do is open a "record selection criteria" form FIRST. Get your selection, THEN open the bound form and apply the filter with the WHERE or FILTER args of the OpenForm command.

If I'm not reading you right, maybe try again...

 

Why not open the form to a new, blank record:

Code:
Private Sub Form_Load()
 DoCmd.GoToRecord , , acNewRec
End Sub


The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Good ideas to request the selection first the open the form.. Ill also try to open a new record on the form..

Good ideas!!! Thanks
 
How are ya DajTwo . . .

You can also use the forms [blue]Data Entry[/blue] property:
[ol][li]In for design view set the property to [blue]Yes[/blue].[/li]
[li] In the [blue]After Update[/blue] event of the combo, copy/paste the following:
Code:
[blue]   If Me.DataEntry Then Me.DataEntry = False[/blue]
[/li][/ol]
[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Hi Aceman, Im well thanks..

I tried your suggestion and when the form opens all is blank, no labels or data.


 
Missinglinq,

Thanks for the suggestion, the form does not allow the user to add new records, only data on existing records. I could create a 000000 record that would always show 1st..

KirbyWallace,

You are right, I would have to create an 'entry form' with the combo box then open the data form when the user selects the record.

Thanks again for the ideas.. good to learn other ways of doing stuff.

happy holidays..



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top