If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Insert some texts into a table by enterng data in a form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-04, 20:21
sylviayoong sylviayoong is offline
Registered User
 
Join Date: Mar 2004
Location: Malaysia
Posts: 2
Smile Insert some texts into a table by enterng data in a form

strSQL = " INSERT INTO SYSADM_PS_ADP_CONTRACTORS (EMPLID,EFFDT,NATIONAL_ID,NAME,PER_STATUS,ORIG_HIR E_DT,HIRE_DT,BIRTHDATE,REHIRE_DT,TERMINATION_DT,DE PTID,JOBCODE,EMPL_STATUS,ACTION,ACTION_DT,ACTION_R EASON,LOCATION,EMPL_TYPE,DEPTNAME,DEPTNAME_ABBRV,M ANAGER_ID)"

strSQL = strSQL & " VALUES (EMPLID,NOW(),NATIONAL_ID,NAME,'E',ORIG_HIRE_DT,OR IG_HIRE_DT,BIRTHDATE,'',TERMINATION_DT,'123','123' ,'A',ACTION,'','',LOCATION,'H','IT','IT',MANAGER_I D)"

DoCmd****nSQL strSQL

MsgBox ("Your Detail have been saved!")
Me.Refresh

I wish to insert some values in SYSADM_PS_ADP_CONTRACTORS table by entering data in a form.

My problem
========
Some of the values are hard coded and some of them i need user to enter their particulars.

The system seems like don't know where should the value to be inserted but it an display the message"Your Detial ....".

When the time i check back my table,i can't find the new particulars of mine.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On