473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Form??

Hello, I created a form with 3 fields. The objective is to input all
my CD Albums that I have. The 3 fields are, Artist Name; Album Title;
Song Title;...

What I want to avoid is inputing the name of the artist and the album
title more than once. Example: I open the form type the artist name
then the album title, the first song, then go to the next record, and
the artist name and album title are already there, so that I would
only worry about typing in the names of the songs and not re-typing
the artist name and album title. Then when I'm done with that album,
close the form, re-open it and all the fieds would be blank, but once
I type the artist name and album title of a different CD, the process
will repeat itself, and I would only worry about inputing each song.

Thanks for taking the time to help me.

Mike
Nov 12 '05 #1
2 1389
One way would be to create two global variables and assign the value
of each field to the variable on the Lost Focus event, then have a New
Record button that assigns the value of the variables to the fields,
or you could write the values to a table.
Patrick

On 15 Oct 2003 09:50:18 -0700, mi************@aig.com (Mike) wrote:
Hello, I created a form with 3 fields. The objective is to input all
my CD Albums that I have. The 3 fields are, Artist Name; Album Title;
Song Title;...

What I want to avoid is inputing the name of the artist and the album
title more than once. Example: I open the form type the artist name
then the album title, the first song, then go to the next record, and
the artist name and album title are already there, so that I would
only worry about typing in the names of the songs and not re-typing
the artist name and album title. Then when I'm done with that album,
close the form, re-open it and all the fieds would be blank, but once
I type the artist name and album title of a different CD, the process
will repeat itself, and I would only worry about inputing each song.

Thanks for taking the time to help me.

Mike


Nov 12 '05 #2
mi************@aig.com (Mike) wrote in
news:8d**************************@posting.google.c om:
Hello, I created a form with 3 fields. The objective is to
input all my CD Albums that I have. The 3 fields are, Artist
Name; Album Title; Song Title;...

What I want to avoid is inputing the name of the artist and
the album title more than once. Example: I open the form type
the artist name then the album title, the first song, then go
to the next record, and the artist name and album title are
already there, so that I would only worry about typing in the
names of the songs and not re-typing the artist name and album
title. Then when I'm done with that album, close the form,
re-open it and all the fieds would be blank, but once I type
the artist name and album title of a different CD, the process
will repeat itself, and I would only worry about inputing each
song.

Thanks for taking the time to help me.

Mike


Mike,

Access has some very simple methods of doing what you propose.
However, Access is a relational database system and you need to set
it up properly to do that.

First I assume that your form is based on a single table. You need
to split it out to two separate tables.

The first table, Albums has the following structure:
AlbumID , type autonumber
AlbumName, text
ArtistName, text.

The second table, Songs has two fields
AlbumID, number (long Integer)
SongTitle, text

Once you have built your tables, you set a relationship between
them. The relationship in your case is between Albums.REcordID and
Songs.RecordID, type 1 to many.
You set relationships from Tools->Relationships,

Now you can modify your form to show an album. Remove the song
textbox from the form, and replace it with a subform based on
Songs.

To use the form, navigate to the NewRow Add the Album title and
Performer, then start adding songs.

Access will do the maintenance for you.

Even better, if you notice after entering twenty songs on an album,
you misspelled the Artist's name, you only need to change it once.

Bob Q
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
8
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query...
5
by: simononestop | last post by:
Hi im totally new to perl this is my first go at using it (I normally use asp). I have set up a form with a cgi script from demon hosting. I have edited the script and the form works it sends me an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.