Re: Insert a New Record
- From: "AccessVBANewbie via AccessMonster.com" <u16788@uwe>
- Date: Tue, 20 Dec 2005 08:58:02 GMT
ok i figured out how to insert a new record to a table through a text box by
using Me.txtCustomer.SetFocus, den typing in the relevant SQL statements. But
how can i insert multiple values from multiple textboxes into a new row of
record in a table? i've tried using the same method to set focus to all the
controls but the error message" You can't reference a control or property
without giving it focus" keeps occuring? anyone has any idea on how i can
solve this? some sample coding would help me greatly. thanx!
Van T. Dinh wrote:
>You can either use the Execute Method to execute an Append Query / SQL
>String
>
>or you can use the AddNew Method of the Recordset object.
>
>Check Access VB Help on Execute or AddNew.
>
>> HI all out there, can anyone give an example of VBA codings in Access to
>> for
>> me to insert a new record into a table with the source data from multiple
>> textboxes? thanks
--
Message posted via http://www.accessmonster.com
.
- Follow-Ups:
- Re: Insert a New Record
- From: Van T. Dinh
- Re: Insert a New Record
- References:
- Insert a New Record
- From: AccessVBANewbie
- Re: Insert a New Record
- From: Van T. Dinh
- Insert a New Record
- Prev by Date: Save problem
- Next by Date: Re: 2 challenges - page borders / group, yes, but with label?
- Previous by thread: Re: Insert a New Record
- Next by thread: Re: Insert a New Record
- Index(es):
Relevant Pages
|
Loading