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

duplicate 20 records

I want to duplicate 20 records with the same date. except the date field
which should not be duplicated but rather be incremented by one day. The
process could be called by a button on the main form

It is a record of the occupancies in a homeless center. It is the simplest
method that I can think of to create a record of occupied or unoccupied
beds. I need to be able to control the order of the records on the form so
that the beds can retain their room order and be easy to interpret by the
worker who books in the guests.

Alan
Nov 18 '05 #1
3 1037
"Alan Oats" <ch*****@gmail.com> wrote in
news:43**********@news.bluewin.ch:
I want to duplicate 20 records with the same date. except the
date field which should not be duplicated but rather be
incremented by one day. The process could be called by a
button on the main form

It is a record of the occupancies in a homeless center. It is
the simplest method that I can think of to create a record of
occupied or unoccupied beds. I need to be able to control the
order of the records on the form so that the beds can retain
their room order and be easy to interpret by the worker who
books in the guests.

Alan

Your design is flawed. Create a static table containing room+bed
information and a separate table containing the guestID , the
date, and the bedID number. You add a record when assigning a
bed to a person.

Set the query to show all the records from the static table, and
the rows from the second table which have been created. Those
which have not been assigned will appear blank.

--
Bob Quintal

PA is y I've altered my email address.
Nov 19 '05 #2
Bob Quintal wrote:
"Alan Oats" <ch*****@gmail.com> wrote in
news:43**********@news.bluewin.ch:

I want to duplicate 20 records with the same date. except the
date field which should not be duplicated but rather be
incremented by one day. The process could be called by a
button on the main form

It is a record of the occupancies in a homeless center. It is
the simplest method that I can think of to create a record of
occupied or unoccupied beds. I need to be able to control the
order of the records on the form so that the beds can retain
their room order and be easy to interpret by the worker who
books in the guests.

Alan


Your design is flawed. Create a static table containing room+bed
information and a separate table containing the guestID , the
date, and the bedID number. You add a record when assigning a
bed to a person.

Set the query to show all the records from the static table, and
the rows from the second table which have been created. Those
which have not been assigned will appear blank.


Thanks for the tip although I only had 15 minutes at work to test your
suggestion it seems to me to be a much better starting point for my
database. I have a couple of questions but I will have to wait untill I
get chance to use access again.

Gratefully Yours

Alan
Nov 20 '05 #3
Alan Oats <ch*****@gmail.com> wrote in
news:43**********************@news.sunrise.ch:
Bob Quintal wrote:
"Alan Oats" <ch*****@gmail.com> wrote in
news:43**********@news.bluewin.ch:

I want to duplicate 20 records with the same date. except
the date field which should not be duplicated but rather be
incremented by one day. The process could be called by a
button on the main form

It is a record of the occupancies in a homeless center. It
is the simplest method that I can think of to create a record
of occupied or unoccupied beds. I need to be able to control
the order of the records on the form so that the beds can
retain their room order and be easy to interpret by the
worker who books in the guests.

Alan


Your design is flawed. Create a static table containing
room+bed information and a separate table containing the
guestID , the date, and the bedID number. You add a record
when assigning a bed to a person.

Set the query to show all the records from the static table,
and the rows from the second table which have been created.
Those which have not been assigned will appear blank.


Thanks for the tip although I only had 15 minutes at work to
test your suggestion it seems to me to be a much better
starting point for my database. I have a couple of questions
but I will have to wait untill I get chance to use access
again.

Gratefully Yours

Alan

Whenever you are ready, we'll be here.
--
Bob Quintal

PA is y I've altered my email address.
Nov 20 '05 #4

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

Similar topics

1
by: Gary Lundquest | last post by:
It appears to me that MySQL version 4 returns an error messge when doing an Insert that results in duplicate entries. Version 3 did NOT return an error - it dropped the duplicate entries and ran...
2
by: ms | last post by:
Access 2000: I am trying to delete duplicate records imported to a staging table leaving one of the duplicates to be imported into the live table. A unique record is based on a composite key of 3...
4
by: KT | last post by:
Is there any one click solution that would do the trick? I would like to create a button, so the person who maintains the database can perform clean up work to delete duplicate records which...
2
by: Carroll | last post by:
I'm looking for a way in SQL to find duplicate records in a single table, that are the same based on 3 columns, regardless of what is in the other columns in the duplicate records. I would like to...
0
by: B.N.Prabhu | last post by:
Hi, I have a DataTable with several rows. Its having 20 Columns. when i click the Insert button then i have to check the Database Rows. Whether these new rows are already available in the...
2
by: nethravathy | last post by:
Hi, The following table namely elcbtripselect contains 5147 records.I want to know wether this table contains duplicate records or not. I tried with following query 1)SELECT...
4
by: Thomas Arthur Seidel | last post by:
Hello to all, I have a small or big problem with a customer data base, where during a change of system we might have created duplicate records. This should be easy to find, you might think, but,...
2
by: nomvula | last post by:
hi guys i need some help to duplicate records on my form datasheet: here's the example of my form results: ClientLookup DateCaptured ForecastDate Description ForecastQuantity Forecast Actual UJ...
6
by: Dilip1983 | last post by:
Hi All, I want to delete duplicate records from a large table. There is one index(INDEX_U1) on 4 columns(col1,col2,col3,col4) which is in unusable state. First of all when i tried to rebuild...
1
by: xraive | last post by:
I have a problem with this. Currently I am trying Allen's code and i am not successful. Current Design Table1 (Main Form) TravelID (PK) ApprovedBY EntreredBy BudgetCode ExpenseCode
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...

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.