Solved

Access Multi purpose form

Posted on 2015-01-22
4
210 Views
Last Modified: 2015-02-19
I would like to create a form that does two things:
It will provide an alphabetized listing of the contents of one table (field one, field two, field three - sort by field 1)

If the information is not contained in the above, the second half will give the person the ability to add the information into these three fields.

I can easily get the second done, my problem seems to be getting the first half on the same form.

Is this possible?   Access 2013
0
Comment
Question by:mjburgard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 40565024
use a query as the record source of the form instead of the table

sample query

select field1, field2, field3 from TableX
Order by Field1
0
 
LVL 37

Assisted Solution

by:PatHartman
PatHartman earned 250 total points
ID: 40565321
If you are using Access 2007 or newer, you can create a split form.  One part of the form shows the records as a list, the other part shows single record view for the record that is selected in the list - or a new record.

I don't like the way the Access split form works so I tend to build my own.  You can do that with an unbound main form and two bound subforms.  One for a list view and the other for a single record view.  In the Current event of the list form, you requery the single form.  The single form has a RecordSource query that references the list form.  So  -

WHERE myfield = Forms!mainform!lstsubform.Form!myfield

And the code goes into the Current event of the list subform.

Me.Parent.lstsubform.Requery
0
 
LVL 31

Accepted Solution

by:
Helen Feddema earned 250 total points
ID: 40567268
I agree about the usefulness of the Access 2007 split form.  For versions before 2007, see my Access Archon article on creating a fake split form:

http://www.helenfeddema.com/Files/accarch192.zip
0
 
LVL 1

Author Comment

by:mjburgard
ID: 40619292
Both of these helped a lot.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question