Re: How to search for a form according to a field other than record nu
From: Jeff Boyce (JeffBoyce_IF_at_msn.com-DISCARD_HYPHEN_TO_END)
Date: 01/12/05
- Next message: Jeff Boyce: "Re: Forms and Subforms"
- Previous message: IRS: "Forms and Subforms"
- In reply to: Jesse: "How to search for a form according to a field other than record nu"
- Next in thread: anonymous_at_discussions.microsoft.com: "How to search for a form according to a field other than record nu"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 04:20:23 -0800
Jesse
We're not there, so we have no idea how your data is organized, or what your
forms look like, or what queries they may be based on.
Having a "form of the 'Jones' family" sounds like an unusual design. Does
this mean you have created a different form for each family?
The data in Access tables is generally not organized in any particular
order. You have to use queries to impose some "sort" order. Apparently,
your record number is the primary key, and Access, by default, uses that for
order. If you want a different order, use a query and sort in it.
You could use a combo box on a form to select "Jones family", then use that
selection to load your form.
The process would work something like this:
> User selects record from combo box. (The combo box has, as it's Bound
Column, the column which holds the record ID)
> In the combo box's AfterUpdate event, the form is requeried, with
something like:
Me.Requery
> The form is based on a query that points to the form's combo box as a
criterion for the record ID, something like:
Forms!YourForm!cboYourComboBox
> The record ID selected in the combo box is used as the criterion in the
query that serves as a source for the form.
-- Good luck Jeff Boyce <Access MVP> "Jesse" <Jesse@discussions.microsoft.com> wrote in message news:AA5AC081-5754-4304-B0DE-499BB20124D2@microsoft.com... > Hi > > My forms are usually in the order of record number. I usually want to find > forms according to last name. I dont want to sort the forms in the order of > last name to find the record I'm interested in. > > Is there a way to jump to the form of the "Jones" family? (ie: without > knowing the record number) > Like create a search field or something? > > Thanks! > Jesse
- Next message: Jeff Boyce: "Re: Forms and Subforms"
- Previous message: IRS: "Forms and Subforms"
- In reply to: Jesse: "How to search for a form according to a field other than record nu"
- Next in thread: anonymous_at_discussions.microsoft.com: "How to search for a form according to a field other than record nu"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|