Find Jobs
Hire Freelancers

MS-Access: Need some help fixing problem with inserting records from a temporary table

$10-30 USD

Closed
Posted about 6 years ago

$10-30 USD

Paid on delivery
I need assistance with this as soon as possible: PREMISE: I am working to allow the user to press a button to save records instead of auto-saving. However, when dealing with a parent/child, one-to-many relationship (subform within a form), you cannot easily disable auto-saving because there needs to be a record in the parent table in order to enter records into the child records. Therefore, I have setup temporary tables that are copies of my original parent/child tables. The form/subform auto-save data into these temporary tables. Then, when the user clicks the save button: (1) an INSERT INTO statement is performed to copy the parent record, (2) an INSERT INTO statement is performed to copy the child records, and (3) DELETE FROM statements are performed to clear the temporary tables. MY PROBLEM: When the child records are being inserted, I get the following error: "set 0 field(s) to Null due to a type conversion failure, and it didn't add 1 record(s) to the table due to key violations". It would seem to me that after the parent record is transferred, it is assigned a new Autonumber for the primary key. This is good, BUT, when the child record is transferred, it is not receiving this new Autonumber as it's primary/foreign key. I NEED HELP making a SQL statement (or something) that will make sure the new autonumber from the newly created parent record is the PK/FK in the attempted INSERT INTO for the child records.
Project ID: 16614114

About the project

22 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
22 freelancers are bidding on average $35 USD for this job
User Avatar
Hello, As an expert in ms access and SQL, i am very much interested to solve the described issue. Looking forward to have a positive response from you. Thanks
$40 USD in 1 day
5.0 (223 reviews)
7.4
7.4
User Avatar
Hi I hope all's well with you. I see you'r looking for a developer proficient in Ms Access/VB. Really all my projects here I've developed for Ms Access/Excel/VB projects. I'm programmer/mathematician since 1979. I'm developing with Access/SQL/VB/Excel since 1997. I can fix your Ms Access DB. . I am not engaged with any other project right now and I will work for 8 hours day for this Job. You can look into my portfolio here for my software screens for my previous work. Do revert me back if you feel like I am a suitable candidate for this Job and discuss further details. Thank You and Regards, Zura
$55 USD in 1 day
4.6 (48 reviews)
6.1
6.1
User Avatar
Hello, I'm an MS Access expert and understand totally the issues with inserting records and the SQL errors you are having. Given this job, I'll help you write out the function and SQL statements in few minutes to appropriately insert records to the tables. I can assure you of my proficiency in getting this done asap. Regards Emmanuel Ovabor
$30 USD in 1 day
5.0 (41 reviews)
5.2
5.2
User Avatar
Good day. I can fix this trouble pretty fast. I am an expert when it comes to MS Access and SQL in general. Feel free to message me so that we can talk more about this project. Thanks and have a nice day.
$30 USD in 1 day
5.0 (50 reviews)
5.4
5.4
User Avatar
TOP SQL FREELANCER AT YOUR SERVICE... PLEASE CHECK MY BADGES, PROJECTS AND REVIEWS and ensure yourself that I can do this very well and very quick... My SQL Level 3 badge really makes me one of the TOP SQL freelancers around
$35 USD in 1 day
5.0 (15 reviews)
5.1
5.1
User Avatar
Hi I have worked extensively in SQL. I have written complex stored procedures which deal with situations similar to this. Looking at this problem statement i think the Parent key should be transferred into child table when records are inserted into child tables. We need to check how this is being done and can be resolved easily Thanks Regards Vaidy
$25 USD in 1 day
5.0 (10 reviews)
4.8
4.8
User Avatar
I have been working with MS Access since version 2.0 Most of all of my projects online have been with Excel and Access. I am your go to guy for MS Access repairs and debugging.
$30 USD in 1 day
4.2 (16 reviews)
4.8
4.8
User Avatar
Please refer to my profile page on Freelancer and review my works Yes, I can help you with your Access project. I am very good at designing database solutions and have worked extensively with user interfaces. I work fast because I have a lot of experience in the field. I have more than 500 hours in training, certifying and lecturing personnel in all phases of Access and VBA. If you hire me you will not regret it. Contact me. Camilo
$30 USD in 1 day
5.0 (3 reviews)
3.6
3.6
User Avatar
I can help! Yes, MS Access can be a bit difficult about returning primary keys. But there are ways to do this. You might need to 'go around' the usual conventions, but we can walk through this together. Please chat with me before accepting though. Let's make sure I understand correctly before starting anything. If I don't have it right, there will still be time for you to choose another bidder. Thanks for reading, David
$18 USD in 2 days
5.0 (4 reviews)
3.3
3.3
User Avatar
Hello sir, i have 8 year of experience in sql server and ms access database. i read your project , i am confident to do your project. let me know your response
$35 USD in 1 day
5.0 (1 review)
0.8
0.8
User Avatar
Hey mate, It seems like you're going around a round a bout way to do something that should be relatively simple. If you can send me through the program/ms-access project you got, I'm sure I can fix it up for you. Please feel free to contact me to discuss this further. Cheers, Canon
$30 USD in 1 day
4.8 (1 review)
0.6
0.6
User Avatar
Excel VBA / Access VBA Automation ............................................................................................
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$35 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I've developed a number of Access-driven desktop applications; some forms may require a small amount of VBA coding to work efficiently. Sounds like your challenge (save only on request) may need some code to handle the scenario: - save only on request - save parent *and* child, or *neither* if there is a failure (but never one without the other)
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Expert in complex SQL Relevant Skills and Experience I manage numerous MS SQL DB's with complex translational requirements
$74 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am an expert sql
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I reviewed specification You gave and I'm very interested to work on your project. Thank You, Goran Hristov
$10 USD in 2 days
5.0 (2 reviews)
0.1
0.1

About the client

Flag of UNITED STATES
Omaha, United States
5.0
4
Payment method verified
Member since Feb 24, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.