input must contain one table or query <- INSERT error

  • Thread starter Mitchell_Collen via AccessMonster.com
  • Start date
M

Mitchell_Collen via AccessMonster.com

Hi

I want to insert a string of my own data into a table based on the date. I do
not have a table or query to which I want to input only my own string. I
would like eventually append data to field based on a form's user input and
date value however for now and while testing the syntax before adding the
form...I am already getting a n error. Do you know how to add a value to
table without needing a query or table for input? Thanks MC

INSERT INTO AutoResult ( siteTested ) VALUES ('myuniquestring')
WHERE AutoResult.dateImported = '7/1/2009'
 
K

KARL DEWEY

Try this --
INSERT INTO AutoResult ( siteTested )
SELECT [Form]![YourFormName]![TextBox]
WHERE AutoResult.dateImported = CVDate([Form]![YourFormName]![DateTextBox]);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top