How can i transfer some fields from one table to another using a trigger

hi,
i have two tables;sales and accounts.i want in my accounts form to enter salesid which is then validated and if it exists in the sales table, some fields are copied to the accounts table automatically.how do i go about this.thanx

hi,
the code u gave me is not running.let me explain in
detail.i have two tables;sales and accounts in my
database (oracle 9i).each have a corresponding form
in the developer window.these tables are linked using
saleid.this id is entered and saved in the
database.when the person is paying in the cash
office,the saleid on an invoice form is entered on
the accounts form.it is supposed to search the sales
table and if the ids match,some records are extracted
from the sales table to the accounts form instead of
the accounts clerk entering the details all over
again.these details will be used to generate a
receipt an then the record on the accounts form is
saved to the database.the contents of the two tables
are:
sales(saleid(pk),startno,endno,quantity,amount,saledat
e)
accounts(receiptno(pk),saleid,startno,endno,quantity,a
mount).
please advice and thanks very muchWhat does it mean "not running" ?
Sure, it is running.
Did you tested my example ?
And it does exactly what you need.
You didn't provided table structures and insert statements,
that's why i showed you the method on 2 emp- tables.
But it is exactly, what do you need.
Change my emp_1 on your sales,
and my emp_2 on your accounts,
and compare the results.
If you cannot directly copy and paste
and say to your teacher / chief "My homework / task is ready"
it doesn't mean, that the solution didn't provided ...

Similar Messages

  • HT204053 How can I transfer my apps from one account to another

    How can I transfer my apps from one account to another

    Apple will not permit transfer of applications from one account to another. Suppose your mom has presented an iPad to you and before presenting she has downloaded some Apps with her account. If you want to update those Apps, you must know her pass word or send the iPad to her and request her to update and give back. If you feel it is time consuming and difficult, the best way is purchase new iPad and down load  the latest version of App. Whenever you come across you go on purchasing new iPad. This will help you to have latest version of iPad with you.
      Ramanujam, Hyderabad.

  • How can i transfer my music from one account to another on a different computer?

    So i have an itunes account on dell laptop and i share that account with other famliy members. I recently bought a mac pro and wanted to create a new account that way i can use icloud, is there any possible way to transfer everything from my old library to my new one or will i lose everything i had on my phone and ipods? Or is it possible to have one account but multiple icloud accounts?

    lisafromwindermere wrote:
    I want to start my own account separate from my parents. Can I transfer my music from one account to another? If so, how?
    Lisa,
    Just get copies of the song files and add them to your iTunes library.  With the exception of any DRM-protected files (purchased before mid-2009 and never upgraded) they will play fine, even though they are technically associated with the original account.

  • How can I transfer appointments, apps from one ipone to another

    How to I transfer appoointments, apps from one Ipohe to another?

    If you plug in your ipod and/or iphone to your new machine, they should show up in the left column in itunes.
    You can ctrl-click on the device there and choose "transfer purchases".  It should then copy the apps and other purchases from your device onto the new machine.

  • How can I transfer apps purchased from one AppleId to another due to breach of account?

    Due to a recent security breach not if my doing a user stole my apple id and needed to change appleid account.  Now as a result i've lost all purchased apps from the itune store. I would like to transfer apps from one apple id to another without incurring additional costs.  With sufficient information in direct contact with the store I should be able to transferable within the software or at very least with the itune store direct.  Perhaps this is a way of charging additional costs for same programs?
    Not a happy camper because of the theft in id but now to add insult to injury i'll have to repurchase the apps to properly sync with my devices.
    Any help would be appreciated

    You can't transfer iTunes content from one account to another. If someone had obtained access to your account credentials and you've had the account locked that should not affect the current authorizations on your computer, though it will prevent you from updating apps until you have resolved the issue. Rather than creating a new AppleID what you should do is regain control of your original Apple ID and have it reenabled with a new password, get, if possible, Apple to deauthorize all computers for your account (assuming you don't have 5 so can't do it yourself) then authorize your computers.
    tt2

  • How can I transfer my contacts from one group to another?

    I have recently discovered that most of my personal contacts have been synced with my work's MS Outlook. This brings two issues to me if I ever had to change jobs and hand over my laptop - 1) My personal contacts will be shared with an unauthorised audience, 2) If they delete my account I will never have access to my own personal contacts as well.
    I tried to see how I can transfer contacts from one group to another but I can't seem to get the hang of it. Can anyone help, please? All I need to do is associate the contacts that have been associated with my work's email account to one of my personal accounts.
    Thank you in advance!
    Rgds
    Dan

    If you use an online syncing service for managing your contacts then you can simply clean up the contancts on one installation, and the changes should update on the second installation immediately. This will only work if you use iCloud, Gmail, or another service for storing your contacts.

  • How can I transfer Firefox profile from One user to another on my pc (win XP)

    At work I'm using Firefox as my default browser.
    In my company the IT administrator installed new system s/w on companys main server and changed the user names.
    So now firefox lost all the information (profile) I already had on my pc.
    Now in "C:\Documents and Settings\" folder I have 2 users.
    One with the old user name and one with the new user name
    Also I can not any longer login in my pc with the old user name because the administrator has changed also the domain name.
    How can I transfer the profile I had (with lot's of usefull bookmarks etc) from the old user-name to the new user-name?
    Thank you in advance!
    Yannis

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • How can I copy some info from one contact to another?

    If I have, for example, 4 people who live in the same address, how can I get all the address fields from one contact and copy to the others?
    Tks

    You can duplicate an address card by copying and pasting.
    Select an address card in the Address Book window.
    Choose Edit > Copy, then choose Edit > Paste.
    Then edit the names and other details or set up the 4 cards and copy and paste each field as required
    chris

  • How can I transfer my iTunes from one laptop to another?

    Is it possible to transfer iTunes from one laptop to another?

    Sure is... see if this helps you: http://support.apple.com/kb/HT4527

  • How can I transfer my Contacts from one partition to another

    Hi. I want to transfer my contacts from Mountain Lion  on one partition, to Mountain lion on another.  I have a lot of junk on the first one which I did not wish to transfer to the new one. Thanks. David.

    If you use an online syncing service for managing your contacts then you can simply clean up the contancts on one installation, and the changes should update on the second installation immediately. This will only work if you use iCloud, Gmail, or another service for storing your contacts.

  • How can I MOVE some projects from one library to another?

    As the aperture library grows quite big and I want to split it into several smaller ones. How can I move projects from the old library to a new one without export them and re-import them all again? Is it possible to retain all adjustments after migration?
    Thanks!

    You export the project by CTRL / Right- click the project and choose 'Export' > 'Project'. The same if you go via the file menu.
    Every adjustment you made, books created, albums etc. will be kept in the exported project and are available again when you import it to another library.
    Regards
    Paul K

  • How can I transfer an iPhone from one computer to another?

    Hi all!
    So, I got my boyfriend an iPhone 4 last year and his computer was so outdated that he could not sync it with his computer.  We recently upgraded to Snow Leopard (no Lion for us yet) for both his and my computer and now he can sync his phone with his own computer.  Before, he could not back up his contacts in his address book, or his calendar, etc.  So anyway, when I plug in his phone to the computer, it recognizes it, but will not allow me to create a backup in his iTunes.  It will also not let me "assign" the phone to the computer.  Any suggestions?  Also, even if I do a complete restore, how can I add the stuff backed up to his iCloud once it's restored?  Any help would be great.  Thanks!

    AYetis wrote:
    Could there be other location for the iWeb files?
    Unless you moved the Domain file, that's its default location. Make sure you're looking in the Library folder in your Home folder rather than Macintosh HD. See also THIS recent post.

  • How can i transfer iweb files from one computer to another?

    Hi,
    Recently my harddrive crashed and i had to rebuild my computer. I retreived most of my files but i cannot find where my iweb files are located. Does anyone know where iweb saves files or how to retreive my domain files from the web (if at all possible)?
    Thanks

    AYetis wrote:
    Could there be other location for the iWeb files?
    Unless you moved the Domain file, that's its default location. Make sure you're looking in the Library folder in your Home folder rather than Macintosh HD. See also THIS recent post.

  • Hello all, I hope you can help. How do I transfer some songs from one account to another?

    Hello, My daughter and I share an Itunes account. She's getting older now and I'd like to transfer all my music to a new account. Is it possible and how? Thanks very much

    You cannot.
    Authorize her computer for your account and she can use the music.

  • How can I transfer my contacts from one iphone to another without iCloud?

    I have an iPhone 4S that has quit working properly. The wifi option is grayed out and it will not let me get online. It also has some other weird things going on. I've tried everythign to fix it, to no avail. Therefore rather than paying $200 for a (refurbished) replacement, I'm going back to my old 4.
    I was told by the AT&T guy not to restore to my new phone because there is a chance that this is software related and it will cause similar problems on my 4. How, then, do I transfer my contacts to my old 4? I can't do it via iCloud because I never set it up on my old phone and it is now inactivated (and can't use wifi).

    Your contacts should be on your computer.
    You should have been syncing them with your computer from day one.
    have you failed to do this?

Maybe you are looking for