473,472 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Transfer data from a form to table

I am new to access can someone tell me how do we send the data entered
from an inquiry form to a table.

say i have a form which has fields

client name
client address
client phone
client email

and i have a submit button.

how do i send this information entered by the user to the client table.

if possible a sample code would be helpful.

Thanks a lot.

Apr 19 '06 #1
8 24462
If the form is bound to the table, then Access does it for you. (if you
run the form wizard and choose the table you want, it'll do this for
you).

Apr 19 '06 #2
Thanks for the response.
but i have my form designed already which has other info too...and also
i want this part of the info to be saved in the client table.

will this stmt do??

Private Sub Submit_Click()
Set db = CurrentDb()
db.execute("INSERT INTO TABLE CLIENT VALUES (" '" _
& Me.&ClientName & "', '" & Me.&ClientAdd & "','" & Me.&ClientPhone &
"','" & Me.&ClientEmail & "');")
End Sub

Apr 19 '06 #3
Do you mean you designed the form and then bound it to the table later?

You _can_ do it the way you suggest, but you're making things hard for
yourself. you don't get field-level validation on the form if you do
that... but there are sometimes reasons for doing things that way.

Why will binding the form to the table not work for you?

Apr 20 '06 #4
how do u bind the form to the table???

Apr 20 '06 #5
may be i can email u my mdb file and u cud have a look at it....wat
say??

Apr 20 '06 #6
wud u like to have a look at my forms and tables??? if yes i could
email them to u....

Apr 20 '06 #7
Br
kanthi wrote:
how do u bind the form to the table???


Set the form's Record Source property. Then set each control's Control
Source to the corresponding field name in the table.

Use the built-in form wizard and see what it does.
--
regards,

Br@dley
Apr 20 '06 #8
Hi!

First u design the table, make sure the id field is an autonumber, then
the other fields text fields, and saves it. Close it.

Then u go to the forms section and chooses to make a form with the help
of a wizard.

The wizard will give u all tables presents in a combobox and underneath
all available fields in that table. Choose the table first and then U
just pick all fields and chooses 'next' in the wizard.

Then the wizard will ask u what kind of layout u will choose for the
form. Choose Column.

Then the wizard willl ask u what kind of style u wants for the form.
Choose Default. Push next.

Now u must choose a name for the form. U can choose 'frmClients'
(Likewise u called your table: 'tblClients)'.

Then the wizard will ask u which fields from the table u want bound to
the form, u choose all

Choose 'Finish' in the wizard and voilá! you're done.

Because clientid in the table is an 'autonumber field', access will by
default use this field to to bind the table to the form. This means
that when u insert information in the textfields, access will
automatically update the autonumber field and when u move on to a new
record or even closes the form, access will save information u entered.

Then....go and have someone by u a good book for beginners on access
and start readind and training. You'll succeed!

Good luck

Me.Name

Apr 20 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kamalkumar | last post by:
Hi Please help for this simple problem DTS Transfer or any other method?
1
by: bwalke | last post by:
Hi all, I am fairly new to using triggers and was seeking some help from those that have experience with them. I am looking to transfer data from a SQL 2000 database to a Visual FoxPro database...
2
by: fhadlaq | last post by:
I need a little help here.. I want to transfer ONLY new records AND update any modified records from Oracle into SQL Server using DTS. How should I go about it? a) how do I use global variable...
2
by: Stefan Mueller | last post by:
I've a HTML page where you can add a lot of data to a dynamic table created with JavaScripts. At the moment this data is stored in a two dimensional array (JavaScript). But how can I transfer this...
2
by: allyn44 | last post by:
Hello, I have a form that I need to transfer some of the info into a second form based on a different query. The Id field is the same for data sources for both forms, but are based on...
1
by: DataB | last post by:
Hi Everyone! I have, essentially, two table structures in the same ms access database file. Both are of the parent-child format, one parent table with personal details, then multiple child...
5
by: Nedu N | last post by:
Hi All, I am facing a typical problem in my .NET application with the pop-up script messages. The thing is that its working fine when i run on my development machine but not running in expected...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
3
by: David Veeneman | last post by:
I am creating a form on the server that I want to POST to a URL that's being called with Server.Transfer(). What's the simplest way to do that? A little background: I'm programming buttons that...
3
by: JohnM | last post by:
I can transfer from a query with DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "Filenam", CPath, True I would like to use a form for the user to select and order data then...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.