F
Fred Boer
Hi everyone!
I have a data edit/entry form for my school library database (see structures
below). It uses a tab control with three tabs: Title Information, Author,
Subject. When entering a new book in the database, the user enters all of
the title information, then clicks on the Author tab, and enters the
author(s) for the title. The "Author" tab contains a subform for entering an
author. This subform contains a combobox (to look up and insert the author's
name if it already exists in the table), an "Edit Author List" command
button, and three text boxes to display/edit the fields: AuthorLastName,
AuthorMiddleName and AuthorFirstName.
Currently the process works as follows:
If author exists, it is found in the combobox and the data is inserted into
the table in the afterupdate event of the combobox (works fine.)
If author doesn't exist, a "vbYesNo" messagebox pops up and asks if the user
wants to enter the author into the table. If yes, up pops a data entry form.
(Question about this part....)
Question:
After entering the name in the combobox, and having the data entry form pop
up, the name has to be re-entered on the form. It would be nice if the data
that was already entered into the combobox could be entered automatically
into the appropriate fields on the data entry form. However, the combobox
rowsource is an expression which combines the fields to format the name to
display "AuthorLastname, AuthorFirstName AuthorMiddleName".
Would it be better to parse out the names from the combobox and push them
into the data entry form, or should I revise the form to use three
comboboxes (one for each field) instead of a single combobox (based on an
expression), and use the kind of drill-down process that Albert Kallal
advocates (and which I've never tried)?
Or is there a better solution? Or is it not worth the trouble to try to do
this?
Thanks!
Fred Boer
P.S. I've been on vacation, and haven't posted a question for a while, so I
thought I'd really write a long one this time... <g>
Table Structures:
Tbl_Library (Book title information)
Book_ID (autonumber)
Title
Format
Binding
Publisher
Place of Publication
etc...
Tbl_Author
Author_ID
AuthorFirstName
AuthorMiddleName
AuthorLastName
Tbl_BookAuthor
Book_ID
Author_ID
I have a data edit/entry form for my school library database (see structures
below). It uses a tab control with three tabs: Title Information, Author,
Subject. When entering a new book in the database, the user enters all of
the title information, then clicks on the Author tab, and enters the
author(s) for the title. The "Author" tab contains a subform for entering an
author. This subform contains a combobox (to look up and insert the author's
name if it already exists in the table), an "Edit Author List" command
button, and three text boxes to display/edit the fields: AuthorLastName,
AuthorMiddleName and AuthorFirstName.
Currently the process works as follows:
If author exists, it is found in the combobox and the data is inserted into
the table in the afterupdate event of the combobox (works fine.)
If author doesn't exist, a "vbYesNo" messagebox pops up and asks if the user
wants to enter the author into the table. If yes, up pops a data entry form.
(Question about this part....)
Question:
After entering the name in the combobox, and having the data entry form pop
up, the name has to be re-entered on the form. It would be nice if the data
that was already entered into the combobox could be entered automatically
into the appropriate fields on the data entry form. However, the combobox
rowsource is an expression which combines the fields to format the name to
display "AuthorLastname, AuthorFirstName AuthorMiddleName".
Would it be better to parse out the names from the combobox and push them
into the data entry form, or should I revise the form to use three
comboboxes (one for each field) instead of a single combobox (based on an
expression), and use the kind of drill-down process that Albert Kallal
advocates (and which I've never tried)?
Or is there a better solution? Or is it not worth the trouble to try to do
this?
Thanks!
Fred Boer
P.S. I've been on vacation, and haven't posted a question for a while, so I
thought I'd really write a long one this time... <g>
Table Structures:
Tbl_Library (Book title information)
Book_ID (autonumber)
Title
Format
Binding
Publisher
Place of Publication
etc...
Tbl_Author
Author_ID
AuthorFirstName
AuthorMiddleName
AuthorLastName
Tbl_BookAuthor
Book_ID
Author_ID