Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6670299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:15:07+00:00 2026-05-26T03:15:07+00:00

AM querying an access database from vb6 using the following query INSERT INTO stock([i_name],[ref],[qty],[supplier_id])

  • 0

AM querying an access database from vb6 using the following query

INSERT INTO stock([i_name],[ref],[qty],[supplier_id]) 
VALUES('dd','dddd','11',(SELECT id FROM suppliers WHERE s_name ='dangote'))

but i get the following error when i run the query

-2147467259   Unspecified error           Microsoft JET Database Engine

can anyone tell me what is wrong

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:15:08+00:00Added an answer on May 26, 2026 at 3:15 am
    INSERT INTO stock([i_name],[ref],[qty],[supplier_id]) 
    SELECT 'dd','dddd','11',id FROM suppliers WHERE s_name ='dangote';
    

    That looks to me like it should work. If you get an error, try pasting it into SQL View of a new query in Access.

    If the field type of qty is numeric rather than text, discard the quotes around the value 11.

    INSERT INTO stock([i_name],[ref],[qty],[supplier_id]) 
    SELECT 'dd','dddd',11,id FROM suppliers WHERE s_name ='dangote';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

AM querying an access database, selecting records from two tables, in vb6 using the
Possible Duplicate: Query Microsoft Access MDB Database using LINQ and C# Im working with
I have an Access database I am querying with SQL from VB .NET. The
I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm
i'm querying a database like this: SELECT * from Log WHERE cookieId IN (select
I'm using an access 2007 database to track and report down time and reliability
I'm having trouble querying my SQLite database using Android. I keep getting either an
I am using PHP to query the MySQL database on my website. Please answer
I'm working on a system for graphically querying data from a database of parasite
is it possible to access the Cacti RRD (Round Robin Database) from a different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.