Results 1 to 5 of 5
  1. #1
    hung_ko is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    21

    select statement inside values?

    I am new to Access.
    I wonder if i can have multiple statements from different tables when i do insert

    the following code doesn't work, but this is what i need to do:



    INSERT INTO waveform
    ( waveform_title_tx, [Frequency Modulation], [Frequency Rate])
    VALUES
    ('TEST',
    [select freq_modulation_id_cd from freq_modulation where freq_modulation_title_tx = 'AM'],
    [select bandwidth_rate_id_cd from bandwidth_rate where bandwidth_rate_title_tx = 'MHz']);

    anyone who can help? thank you

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    It would probably be simplest to use a DLookup for each of those values.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    hung_ko is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    21
    thank you for the help, Paul.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    hung_ko is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    21
    thanks, man

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

Similar Threads

  1. Check my Select Statement in Form
    By OMGsh Y did I say Yes in forum Forms
    Replies: 12
    Last Post: 12-07-2010, 02:13 PM
  2. Conditional Select Statement
    By shexe in forum Queries
    Replies: 4
    Last Post: 09-22-2010, 09:10 AM
  3. select statement
    By jellybeannn in forum Access
    Replies: 5
    Last Post: 08-13-2010, 05:21 AM
  4. Select statement syntax?
    By ksmith in forum Programming
    Replies: 3
    Last Post: 06-24-2010, 09:21 AM
  5. What is wrong with my SQL Select statement?
    By John2810 in forum Programming
    Replies: 2
    Last Post: 04-01-2010, 10:30 AM

Tags for this Thread

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