Results 1 to 5 of 5
  1. #1
    rwahdan1978 is offline Advanced Beginner
    Windows 11 Access 2016
    Join Date
    Jun 2024
    Posts
    57

    insert new record into table from a query


    Hi

    I have the following query:
    Code:
        Dim rs3 As Recordset
        Set rs3 = CurrentDb.OpenRecordset("select * from users order by score desc")
    from the query I am showing current winners in the game: Name, Score and winner photo (from the query above). Before playijg a new game I want to add this record to my table:

    Click image for larger version. 

Name:	Untitled.png 
Views:	33 
Size:	10.0 KB 
ID:	52018

    How to do that?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Add what record - another game? Why not do data entry?

    Your data structure is not normalized.

    How can a game have multiple winners?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    To my comrades: I looked at OP's thread history. I stopped looking after 10 threads; not one of them was acknowledged as solved. All dropped and last to post was someone trying to help. Expect the same here I guess.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Quote Originally Posted by Micron View Post
    To my comrades: I looked at OP's thread history. I stopped looking after 10 threads; not one of them was acknowledged as solved. All dropped and last to post was someone trying to help. Expect the same here I guess.
    Yeah, I noticed that too and was even considering a post like yours. I spent considerable time on replies to this individual, with NOTHING acknowledged.

  5. #5
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,555
    I hate the one sthat come back and say 'It is OK, I solved it' but then do not say how

    All take and no give.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 11-15-2019, 04:04 PM
  2. Replies: 2
    Last Post: 03-10-2017, 02:24 PM
  3. VBA - Insert a record from one table to other
    By Praveenevg in forum Access
    Replies: 1
    Last Post: 08-15-2014, 01:50 AM
  4. Insert a new record in a particular position in a table?
    By accessorizer in forum Programming
    Replies: 7
    Last Post: 04-07-2012, 04:21 PM
  5. Insert Record checks table
    By pfarnell in forum Forms
    Replies: 13
    Last Post: 09-05-2010, 10:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums