Re: Feed values from a text box to a table

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Vinson (jvinson_at_STOP_SPAM.WysardOfInfo.com)
Date: 01/24/05


Date: Sun, 23 Jan 2005 17:39:09 -0700

On Sun, 23 Jan 2005 23:20:19 GMT, "Dan Hovden via AccessMonster.com"
<forum@AccessMonster.com> wrote:

>First of all. I've learned more about access the last 24h than at the one-week course I took.

<g> That's not uncommon. Working on a real-life problem beats any
course hands down, every time!

>And second....When you're talking about "resolver." Do you mean relationships between different columns in different tables?? In that case I have made direct relationships between the "HealthIssueIDs" from the AnimalCondition- and the HealthIssues tables, and the "AnimalIDs" from the AnimalCondition- and the Animals tables.

A Many to Many relationship requires THREE tables: in your case,
Recordings, Genres, and a table to list which recordings are in which
genre. This third table is often called a "Resolver" table. It is
related one-to-many to the Recordings table, and also related
one-to-many to the Genres table.

>Do these relationships imply that whatever is fed into one column also is fed into the relationship-column?

No, certainly not!

You add a new record to the resolver table to establish a
relationship. For instance, if you have a recording of Vivaldi's
Concerto for Two Flutes, you would create a record in the resolver
table with that recording's ID and "Baroque", and then a second record
for the same ID and "Chamber Music".

>And I assume that all the different HealthIssues (or in my case Genres) are to be listed in the HealthIssueID as the only column. I used this column as the row source for the lstHealthIssues listbox.

You'll have a table of Genres with each genre listed once. The
resolver table will have each genre repeated as many times as you have
recordings in that genre. That is, if you have 37 chamber music
recordings, there will be 37 records (all with different
RecordingID's) in the table.

>Here comes the problem. When I hit the button I get this error message:
>"Microsoft Access. Error 2465 in cmdProcess_Click: Microsoft Access can't find the field 'lstHealthIssues' referred to in your expression.
>
>I don't understand this. The listbox is most definitely named lstHealthIssues and is in the same form as the button.

Then I don't understand it either! You're not using a Subform are you?
The code assumes that there is a Listbox control with a Name property
of lstHealthIssues; doublecheck that this listbox in fact has this
Name (not its caption or its control source, but the name of the
control).

                  John W. Vinson[MVP]



Relevant Pages

  • Re: Shout Bits website on John
    ... year-old three-chord teenybopper pop tunes: ... many jazz freaks obsessing over what color Dizzy's ... I identify by ear the original recordings the loops ... are some positively spectacular guitarists in the genre; ...
    (rec.music.beatles)
  • Tellico: How to enter genre?
    ... I'd thought I'd give Tellico a try and it looks quite interesting (though I need to find the time to add my 1000+ TV recordings on DVD+Rs ....). ... categorized as "Action / Thriller") but I fail to get them separated, i.e. whatever I enter in the "Genre" field, it ends up as a single entry in the "Genre" column, while I'd like to have two entries: ... I tried slashes, commas, slashes with blanks ... ...
    (comp.os.linux.development.apps)
  • Re: A good record shop?
    ... enjoy it, my knowledge of the genre is limited, and I have even less ... knowledge of the relative quality and provenance of 'versions' of pieces by ... than one occasion and recordings are out of copyright so some re-issues may ...
    (uk.rec.audio)
  • Re: What recordings define your taste in music?
    ... > Which recordings best define your overall taste in music? ... > number of discs from any genre (as this is a classical NG, ...
    (rec.music.classical.recordings)
  • Re: Best PVR for older/non-techie people
    ... Followed by a Toppy fully loaded with TAPs, then a Toppy without TAPs, ... needs the dexterity and understanding of joypad up/down/left/right/fire 'the golden shot' control and recognises the screen highlight and any screen to screen paging, ... has the ability to cope with several stages of decision making with regard to deleting or preparing space for other recordings, ... And also getting defeated by multi-device remote controls accidently switched to controling something else rather than the device in question. ...
    (uk.tech.digital-tv)