*So* frustrating... (geek whinge/cry for help)
Sunday, 26 March 2006 07:30 pmI am putting together a MS Access database to function as a high-tech searcheable songbook. It's all laid out and working well. I have assorted fields and checkboxes at the top, and then the song title and so on, and then a field, obviously, for the song lyrics. I can't put these in as text or memo fields because the length for those is too restrictive. I have, therefore, a lot of plain text documents with the lyrics in, in a separate folder, and I want to apply these to the database. I thought I had it taped, because dragging-and-dropping adds them in as OLE bound objects (stored in the database file). That's fine. I'd also be happy to do them as linked docs, hyperlinks, whatever.
However, it has just fallen apart. I have *two* versions of 'The Dawning of the Day', and I want to record both using separate text files. I just cannot work out how to do this. An OLE Object field will only take one object. AFAICT, a hyperlink field will only take one hyperlink. Text fields won't do any of this stuff. I'm stuck! Anyone got any ideas?
However, it has just fallen apart. I have *two* versions of 'The Dawning of the Day', and I want to record both using separate text files. I just cannot work out how to do this. An OLE Object field will only take one object. AFAICT, a hyperlink field will only take one hyperlink. Text fields won't do any of this stuff. I'm stuck! Anyone got any ideas?
no subject
Date: Sunday, 26 March 2006 06:41 pm (UTC)no subject
Date: Sunday, 26 March 2006 07:03 pm (UTC)(As it happens I have simply added another couple of OLE fields and am shoving extra lyrics in there.)
no subject
Date: Sunday, 26 March 2006 07:13 pm (UTC)OK. Illustrative diagram.
Table A contains the basic song information, as well as a primary key (in this case a non-meaningful, surrogate autonumber called ID. This is not the only way to handle primary keys, and many brutal wars have been fought over the issue, but for demonstration purposes we'll stick with this one).
Table C contains a series of lyrics stored as OLE objects, and a primary key, also an autonumber named ID.
Table B is the junction table. It defines which lyrics go with which song, by saying which SongsID goes with which LyricsID.
Actually, you don't even need a junction table, since if it's a songbook, it's unlikely that you're going to have one set of lyrics that go with many songs. You could do it like this:
So you have one table for songs, and one table for lyrics, and in the Lyrics table you have a field to designate a song to the record.
I think I'm just junction-happy. :-)
no subject
Date: Monday, 27 March 2006 12:10 am (UTC)added another couple of OLE fields
Date: Monday, 27 March 2006 09:18 am (UTC)no subject
Date: Monday, 27 March 2006 09:31 am (UTC)Then you just have one entry.
no subject
Date: Monday, 27 March 2006 07:19 pm (UTC)no subject
Date: Monday, 27 March 2006 07:20 pm (UTC)no subject
Date: Monday, 27 March 2006 07:21 pm (UTC)no subject
Date: Monday, 27 March 2006 09:58 pm (UTC)What I can't work out is how to *use* that to give me a nice form with the data from the SONGS table at the top, and a thing to click for the lyric file from the LYRICS table.
I appear to lose at Access. I'm going to try putting some data in the second table, though, and will see what happens. :)
no subject
Date: Monday, 27 March 2006 11:25 pm (UTC)Once that's done, have a look at using the Lookup Wizard on the foreign key.
no subject
Date: Tuesday, 28 March 2006 08:40 am (UTC)Completely unrelated to post
Date: Monday, 3 April 2006 11:52 am (UTC)no subject
Date: Friday, 7 April 2006 01:07 pm (UTC)no subject
Date: Friday, 7 April 2006 02:43 pm (UTC)no subject
Date: Thursday, 13 April 2006 09:17 pm (UTC)no subject
Date: Monday, 17 April 2006 07:20 pm (UTC)I have Metrogel (active ingredient metronidazole) prescribed by the doctor, which seems to prevent the lumpiness and some of the dryness, but not touch the redness. I use a very gentle face-wash by L'Oreal and a simple hypoallergenic moisturiser. That's it! I haven't found anything that makes much difference yet. How about you?