+ Reply to Thread
Results 1 to 3 of 3

append query using and unbound form and adding record to Tbl w auto numb primery key

  1. #1
    Registered User
    Join Date
    12-06-2009
    Location
    Asia Pacific
    MS-Off Ver
    Excel 2003
    Posts
    30

    append query using and unbound form and adding record to Tbl w auto numb primery key

    Hi

    I have an add new client button on my fmRequest (main form window) which hyperlinks to another form called fmClient.

    Also on the fmRequest I have a drop down arrow which slects the client frist name and last name.

    When I click on the add new client button (on fmRequest) it goes to the fmClient where I enter in the following: Title, FirstName, LastName ,Department,Telephone,Email,Fax,ClientComment

    once I close this and go down to the drop down box the clients first name and last name is not there.

    I have tried following similar method to that of this site and using an append query.
    http://www.datapigtechnologies.com/f...rdsnocode.html

    However, I get an error and believe that it is because it is tryting to append to a table that has a primary key that generate and auto number???

    The error says:
    fmRequests set 0 field(s) to Null due to a type conversion failure and it didnt add 1 record to the table due to key violations 0 records due to lock violations and 1 records due to validation rule violatinons.

    Help on this is much appreciated.

    Many thanks
    Natalie

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: append query using and unbound form and adding record to Tbl w auto numb primery

    Natalie,
    Would you post your db with some sample data. In this manner, we can look at the db and determine what is happening to cause you to get this error message.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-06-2009
    Location
    Asia Pacific
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: append query using and unbound form and adding record to Tbl w auto numb primery

    Quote Originally Posted by alansidman View Post
    Natalie,
    Would you post your db with some sample data. In this manner, we can look at the db and determine what is happening to cause you to get this error message.

    Alan

    Thanks Alan,

    I have resloved this one.....but my post regarding: "combo box to display multiple records in a form" hasn't beeen resolved yet...but has been flagged as resolved.

    Help on that one would be great many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1