473,378 Members | 1,422 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,378 software developers and data experts.

Duplicate text box entries into multiple records on same form

3
• I am using Access Trial 2007 in 2003 Mode.

• I designed a Form to track what tickets still need to be issued
using a split form:
________________________________________

Ticket 14 First --------- Last ----------- Issued (n)
__________________________________________
Ticket # ---First----Last-----Issued
14 ----------|--------|----------|----- (n)
15 ----------|--------|----------|----- (n)
16 ----------|--------|----------|----- (n)
17 ----------|--------|----------|----- (n)
34 ----------|--------|----------|----- (n)
35 ----------|--------|----------|----- (n)

• I can issue up to 150 tickets to the same person – so how do I keep the person’s first and last name I input into record 14 to repeat itself when I go to ticket # 15?
• I am sure it is better to write a batch program (?) that allows me to choose tickets 10 – 110 and issue them to John Doe and all the fields are updated automatically but I am long way from understanding that.
• I used to program in DBASE III – many moons ago – this object based stuff has taken this old man back to square 1. I do not mind going from record to record and updating the logic field (Y/N) but having to type the same name in over and over does get old.
--- I spent about 5 hours looking over some of the discussions and tried some of them for fun - I never got anything to work as I am not sure where the code goes. When at the MS site they tell you to were to insert it (be nice). I need that also. It has been at least 25 years since I actually coded anything.
Jan 31 '07 #1
7 3553
ADezii
8,834 Expert 8TB
• I am using Access Trial 2007 in 2003 Mode.

• I designed a Form to track what tickets still need to be issued
using a split form:
________________________________________

Ticket 14 First --------- Last ----------- Issued (n)
__________________________________________
Ticket # ---First----Last-----Issued
14 ----------|--------|----------|----- (n)
15 ----------|--------|----------|----- (n)
16 ----------|--------|----------|----- (n)
17 ----------|--------|----------|----- (n)
34 ----------|--------|----------|----- (n)
35 ----------|--------|----------|----- (n)

• I can issue up to 150 tickets to the same person – so how do I keep the person’s first and last name I input into record 14 to repeat itself when I go to ticket # 15?
• I am sure it is better to write a batch program (?) that allows me to choose tickets 10 – 110 and issue them to John Doe and all the fields are updated automatically but I am long way from understanding that.
• I used to program in DBASE III – many moons ago – this object based stuff has taken this old man back to square 1. I do not mind going from record to record and updating the logic field (Y/N) but having to type the same name in over and over does get old.
--- I spent about 5 hours looking over some of the discussions and tried some of them for fun - I never got anything to work as I am not sure where the code goes. When at the MS site they tell you to were to insert it (be nice). I need that also. It has been at least 25 years since I actually coded anything.
You're thinking of the old flatfile architecture of DBASE III and trying to use it within a Relational Database Management System such as Access. You would have no need to duplicate the individual's First and Last Name in successive Records for Ticket purchases. You would have a Parent Table called whatever you like, say tblMember. Within this Table you would have at a minimum 3 Fields: First Name, Last Name, and a unique identifier. For the sake of argument, we can use a person's Social Security Account Number (SSAN). The Child Table, say tblTickets, would also contain at a minimum the Member's SSAN, and all Ticket related information such as: Ticket#, Section, Box, Seat, etc. You would then establish a 1 to Many Relationship between tblMember and tblTickets via the SSAN Field. This Relational structure would eliminate the necessity of entering an individual's First and Last Name more than once and help to ensure data integrity. Hope this helps. If you need further assistance, please let us know.
Jan 31 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
Check out this tutorial on Normalisation and Table Structures from our tutorial section. It should help you get started.

Mary
Jan 31 '07 #3
dbnut
3
You're thinking of the old flatfile architecture of DBASE III and trying to use it within a Relational Database Management System such as Access. You would have no need to duplicate the individual's First and Last Name in successive Records for Ticket purchases. You would have a Parent Table called whatever you like, say tblMember. Within this Table you would have at a minimum 3 Fields: First Name, Last Name, and a unique identifier. For the sake of argument, we can use a person's Social Security Account Number (SSAN). The Child Table, say tblTickets, would also contain at a minimum the Member's SSAN, and all Ticket related information such as: Ticket#, Section, Box, Seat, etc. You would then establish a 1 to Many Relationship between tblMember and tblTickets via the SSAN Field. This Relational structure would eliminate the necessity of entering an individual's First and Last Name more than once and help to ensure data integrity. Hope this helps. If you need further assistance, please let us know.

I do have two child tables as described but linked them by ticket #

1. Issued Table: ticket # , FirstName , LastName
2. Sold Table: ticket # , SFirstName , SLast Name

My Parent ticket table: Ticket #, issued (y/n), sold (y/n), deposited (y/n).

I am sure that I do not need both child tables if I understand the logic.

The idea is to track who I issued tickets to - who the ultimate buyer is - and make sure the deposits match sales. I have a set number of tickets = 1200.

Now to make the quantum leap from the earth is flat to round. I will redesign the project - two tables as described - I will add a SSAN (I will use the record number) I do understand the one to many concept and played with that but it is in the data input where I lose it. But I refuse to give up - If I can learn how to program in COBOL and FORTRAN using punch cards then I can do this. It seems so simple - maybe I can catch my 10 yr old grandson and have him show me. Thanks
Jan 31 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
I do have two child tables as described but linked them by ticket #

1. Issued Table: ticket # , FirstName , LastName
2. Sold Table: ticket # , SFirstName , SLast Name

My Parent ticket table: Ticket #, issued (y/n), sold (y/n), deposited (y/n).

I am sure that I do not need both child tables if I understand the logic.

The idea is to track who I issued tickets to - who the ultimate buyer is - and make sure the deposits match sales. I have a set number of tickets = 1200.

Now to make the quantum leap from the earth is flat to round. I will redesign the project - two tables as described - I will add a SSAN (I will use the record number) I do understand the one to many concept and played with that but it is in the data input where I lose it. But I refuse to give up - If I can learn how to program in COBOL and FORTRAN using punch cards then I can do this. It seems so simple - maybe I can catch my 10 yr old grandson and have him show me. Thanks
You have a ticket table with ticket no. etc.

If you wish to record the sale and issue of each ticket individually you could theoretically do it in one table as the relationhip would be one to one. One ticket #1, Ticket #1 sold, Ticket #1 issued. I have used DateOfSale/DateOfIssue rather than yes/no as it is a better record. If DateOfSale is null then the ticket has not been sold.

tblTicket
TicketNo (Primary Key)
DateOfSale
BuyersName
DateOfIssue
IssuedTo

tblDeposits
DepositID (Primary Key - AutoNumber)
DepositDate
DepositAmount

Unless there is one deposit per ticket you could work out the deposits per ticket as follows: Assuming tickets are 10 Euro (STG or Dollars) each.

Expand|Select|Wrap|Line Numbers
  1. SELECT Count(TicketNo) As TicketsSold, Sum(DepositAmount) As Deposited, TicketsSold * 10 As Sales
  2. FROM tblTickets, tblDeposits
  3. WHERE DateOfSale Is Not Null;
Mary
Jan 31 '07 #5
NeoPa
32,556 Expert Mod 16PB
Be assured that Access can handle your situation.
An earlier poster pointed you to the Normalisation and Table Structures thread. You could do a lot worse than studying that and getting the fundamental concept inside and settled down (if you haven't already). Not all the complexities are required but the fundamental concepts can really help you understand a situation like this. It's really important because it helps you to work with Access rather than around it.
I think it's safe to say, we like your attitude. You've done as much of the homework as possible before requesting help. With material like that I'm sure we can make an Access database designer of you yet :)

When you get to the stage of designing the forms, we can help there too. There are all sorts of ways to handle situations similar to those you describe. We just need to understand the details properly to guide you in the right direction.
Jan 31 '07 #6
dbnut
3
Be assured that Access can handle your situation.
An earlier poster pointed you to the Normalisation and Table Structures thread. You could do a lot worse than studying that and getting the fundamental concept inside and settled down (if you haven't already). Not all the complexities are required but the fundamental concepts can really help you understand a situation like this. It's really important because it helps you to work with Access rather than around it.
I think it's safe to say, we like your attitude. You've done as much of the homework as possible before requesting help. With material like that I'm sure we can make an Access database designer of you yet :)

When you get to the stage of designing the forms, we can help there too. There are all sorts of ways to handle situations similar to those you describe. We just need to understand the details properly to guide you in the right direction.
I do want to thank all of you for your help.

Mary's hint about using dates is very interesting. It solves the distribution problem I have yet had time to consider.

I have already built the two tables as ADezii suggested using SSAN. Wrote about 30 quarries and as many forms trying to figure out how to post the data base - once I gave up on building everything around the tblTickets table and starting focusing around the tblMember table I am finally starting to get some interesting results.

I really appreciate the encouraging words – I needed that as I really hate to bother anyone with my problems.
Feb 1 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
I really appreciate the encouraging words – I needed that as I really hate to bother anyone with my problems.
Always remember, nobody starts out knowing everything. We all had to start somewhere so never worry about asking for help. That's what we're here for and it's always a pleasure to help someone who appreciates it.

Mary
Feb 1 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: george | last post by:
This is like the bug from hell. It is kind of hard to explain, so please bear with me. Background Info: SQL Server 7.0, on an NT box, Active Server pages with Javascript, using ADO objects. ...
1
by: marx | last post by:
I have a bit of a problem and any help would be much appreciated. Problem: I have two dropdown list boxes with same data(all data driven). These are used for two separate entries. For every...
9
by: Catherine Jo Morgan | last post by:
Can I set it up so that a certain combination of fields can't contain the same entries, on another record? e.g. a combination of FirstName/LastName/address? Or FirstName/LastName/phone? Or...
3
by: Nhmiller | last post by:
I searched here for an answer. I am entering records into a database, and it would save a lot of time if I could duplicate a record that is very similar to the new one I am about to enter, then...
5
by: MJ | last post by:
I have created a table with Customer number as the key field and in another table the key field is a combination of two fields: Customer and System #. When I create a form I am getting duplicate...
14
by: BarrySDCA | last post by:
I have a database being populated by hits to a program on a server. The problem is each client connection may require a few hits in a 1-2 second time frame. This is resulting in multiple database...
5
by: Manish | last post by:
The topic is related to MySQL database. Suppose a table "address" contains the following records ------------------------------------------------------- | name | address | phone |...
0
by: claus | last post by:
Hi, I am not a programmer but tries anyway to program a feature in a form where I am able to copy entries for the form and a subform. I have tried follow the guide here...
9
by: rjshrader | last post by:
I have a table (tblStatus) with three fields (CustomerID, StatusType and StatusDate). I use an unbound form with three text boxes to enter data into the table when a command button (cmdSave) is...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.