473,396 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Form Fields'values in Insert Query

Hi,
In my project i have one table production.Now i have to make application in which i have to insert new data in table by fields of form made in access.I don't know how to use form field's values in insert query.
i am trying this code but it will not insert data.

INSERT INTO PRODUCTION
VALUES ('([Forms]![customer]![Date_Text])', '([Forms]![customer]![PalletNo_Text])', '([Forms]![customer]![CustomerCode_Text])', '([Forms]![customer]![PONo_Text])', '([Forms]![customer]![ItemNo_Text])', '([Forms]![customer]![Description_Text])', '([Forms]![customer]![ShippingLocation_Text])', '([Forms]![customer]![BatchOrLotNo_Text])', '([Forms]![customer]![Cartons_Text])', '([Forms]![customer]![PcsOrCarton_Text])', '([Forms]![customer]![PartialCarton_Text])', '([Forms]![customer]![PartialCarton1_Text])', '([Forms]![customer]![PartialCarton2_Text])', '([Forms]![customer]![TotalQuantity_Text])', '([Forms]![customer]![ShippedDate_Text])', '([Forms]![customer]![QuantityOnHand_Text])', '([Forms]![customer]![Location_Text])', '([Forms]![customer]![Notes_Text])');


after run these query i will get [Forms]![customer]![Date_Text] in table's first field and same in other fields.
If anyone can help plese try to solve the problem
if u get confused please tell me to explain it more clearly.
Nov 14 '07 #1
1 2945
Rabbit
12,516 Expert Mod 8TB
You have to take out the quotes, the quotes signify that what's between them should be read as pure text. What you're trying to do is tell it to get the value from the control on the form.
Nov 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Dave Karmens | last post by:
If I have say 10 fixed variables, how can I set their values = to that of a form that is built dynamically? column1 column2 email = formvalue(0) fname = formvalue(1) lname = formvalue(2)...
2
by: Tim Chmielewski | last post by:
I have been trying to read values from a form into an array on a page without much success and was told to use a Scripting.Dictionary instead. There are a variable number of fields on the form as...
1
by: Randell D. | last post by:
HELP! I am determined to stick with this... I'm getting there... for those who haven't read my earlier posts, I'm createing what should be a simple function that I can call to check that...
1
by: Robert Neville | last post by:
I would like to add filter functionality to my database whether through the Main form or the subform. This question may be rudimentary, yet I have not less experience with filtering data outside...
1
by: JM | last post by:
Hello, Using Access 2000 queries, you can reference(pass) form values directly using syntax like Forms!frmPaint!txtColor. I want to do a pass through query to SQL Server 2000, but I don't know...
1
by: Miguel Dias Moura | last post by:
Hello, Can you help me out in making this work? What I want is as simple as sending form values to an email. The code I am using is the following:
2
by: KFactor | last post by:
Is it possible to pass form variables to a page on another server using response.redirect? Or is there a secure way of passing sensitive information from one site to another such as a userID? ...
0
by: Jon | last post by:
Is there a simple way to export all the form fields on a form the user submitted to an xml format? For instance, if you had a form with three fields on it and in the submit event you did the...
7
by: cartercc | last post by:
I think I already know the answer to this one, but I'm giving it the old college try. My problem is this: I have an HTML form that sends a bunch of data to a Perl script, where it is validated...
5
by: jmartmem | last post by:
Greetings, I have built an Update Record Form in an ASP page. This form contains a number of fields, such as text boxes and menus, to name a few. Upon clicking the 'submit' button, I want the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.