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

dubliacted record or clon record

dear respected sir,

i would like to ask you following problem to anyone can give me hints

- i have database of insurance company, where policy table is link to
customer table and each policy has details policy table
- now the pk in poicy table is policyno(pk)
- so every year the same client policy came for renewal, so v need to
design database form/query/programming/sql that will copy the the
whole row or record, then policyno need to change
i did try by dubplicate wizard button could not success, then i try as
well append query with where clause also fails

i felt i am stuck in syntaxing...can any one help me

thanks a lots

urs student

shahzad
Nov 12 '05 #1
3 1356
ms******@yahoo.ca (MUHAMAMD SALIM SHAHZAD) wrote in message news:<5a**************************@posting.google. com>...
dear respected sir,

i would like to ask you following problem to anyone can give me hints

- i have database of insurance company, where policy table is link to
customer table and each policy has details policy table
- now the pk in poicy table is policyno(pk)
- so every year the same client policy came for renewal, so v need to
design database form/query/programming/sql that will copy the the
whole row or record, then policyno need to change
i did try by dubplicate wizard button could not success, then i try as
well append query with where clause also fails

i felt i am stuck in syntaxing...can any one help me

thanks a lots

urs student

shahzad


I think you're going to need to give more details, such as which table
you are trying to duplicate a record in (I'm assuming it's the policy
details table), and what are the indexes (especially, describe unique
indexes: primary key, etc). Then, it may be more possible to assist
you in this.
Nov 12 '05 #2
dear sir, in fact i do need to dubplicate

policy master table
policy details table, as there r relations ship

well i have done successfully by the wizard of dublicate button, but
still i wish to give alert or popup to change policyno(pk) in master
table/details as well

there can be used by dao, ado and any other source that i don't know

i saw the codes from various site could not clear me, they created
book mark

rgds, and thanks
shahzad
Nov 12 '05 #3
If you need to change the policy number every time the policy is renewed for
another time period, there is something wrong with your design. The policy
master record should remain, unchanged, and its PK should be a foreign key
in the related tables, each of which should also have its own record key. I
would regard payment of a premium as just another transaction against the
policy, and would have a separate table for transactions (payments in,
payments out, etc.) -- that may be the purpose of the policy detail table in
your schema.

Larry Linson
Microsoft Access MVP

"MUHAMAMD SALIM SHAHZAD" <ms******@yahoo.ca> wrote in message
news:5a**************************@posting.google.c om...
dear sir, in fact i do need to dubplicate

policy master table
policy details table, as there r relations ship

well i have done successfully by the wizard of dublicate button, but
still i wish to give alert or popup to change policyno(pk) in master
table/details as well

there can be used by dao, ado and any other source that i don't know

i saw the codes from various site could not clear me, they created
book mark

rgds, and thanks
shahzad

Nov 12 '05 #4

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

Similar topics

17
by: Rick | last post by:
Hi all, Is there a MySQL function to get the first record through a query? I would like to open a page of client records with the first one shown. The other records can be accessed from a...
9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
2
by: BT3 | last post by:
I am trying to replace a single record in a flat file. The file is relatively small and no need for database. I open the file, and save the ftell() value in a variable. I read a record using...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
8
by: Zlatko Matiæ | last post by:
There is a form (single form) and a combobox. I want that current record of the form is adjusted according to selected value in the combobox. Cuurrent record should be the same as the value in the...
1
by: Scott269 | last post by:
So I've got an old MS Works database I imported into Access. I needed a primary key so I created a record number field that was just the record number I manually inserted when I entered it in the...
2
by: Mark Reed | last post by:
Hi All, I have created a multi-user application at work which is working perfectly apart from a small problem which I believe to more a of a user issue (maybe some will set me straight on that...
11
khalidbaloch
by: khalidbaloch | last post by:
hi : all Friend i am a new member of this comunity as well in php myqsl i want learn that how to dispaly three or two record from a mysql table for example .. mysql table category has 21 columns,...
3
prn
by: prn | last post by:
Hi folks, I've got something that's driving me crazy here. If you don't want to read a long explanation, this is not the post for you. My problematic Access app is a DB for keeping track of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.