PC Review


Reply
Thread Tools Rate Thread

copy records from excel to access table

 
 
=?Utf-8?B?TUJBRk1BWA==?=
Guest
Posts: n/a
 
      8th Nov 2006
Hi,, I have existing table (tblstudent) with fields called student ID, Names
and Address, i have an excel sheet with same info (Stident ID, Names and
Address) and Date of Birth... I have created the field "Date of Birth" in the
tblstudent, now how do i add the excel sheet data of "Date of Birth" to
"tblStudent" I have tried append and update querie ,,no luck.. so what am i
doing wrong??

Thanks so much.........m
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      8th Nov 2006
Link the Excel by clicking on menu FILE - Get External Data - Link Tables.
Find your Excel and link.
In a select query left join tblstudent to the linked Excel spreadsheet on
the Student ID. Pull down the fields and run the query. Check the displayed
data - if it is ok then change query to Update query. Update the
[tblstudent].[Date of Birth] field with [YourLinkedExcel].[Date of Birth] and
run the query.

"MBAFMAX" wrote:

> Hi,, I have existing table (tblstudent) with fields called student ID, Names
> and Address, i have an excel sheet with same info (Stident ID, Names and
> Address) and Date of Birth... I have created the field "Date of Birth" in the
> tblstudent, now how do i add the excel sheet data of "Date of Birth" to
> "tblStudent" I have tried append and update querie ,,no luck.. so what am i
> doing wrong??
>
> Thanks so much.........m

 
Reply With Quote
 
=?Utf-8?B?TUJBRk1BWA==?=
Guest
Posts: n/a
 
      8th Nov 2006
thanks so much,, but when i run the querie i got no data in date of birth
field.. her is what the SQL string looks like.. i named the link table
student1
UPDATE students INNER JOIN students1 ON students.[STUDENT ID] =
students1.[STUDENT ID] SET students.[date of birth] = [student1].[date of
birth];


"KARL DEWEY" wrote:

> Link the Excel by clicking on menu FILE - Get External Data - Link Tables.
> Find your Excel and link.
> In a select query left join tblstudent to the linked Excel spreadsheet on
> the Student ID. Pull down the fields and run the query. Check the displayed
> data - if it is ok then change query to Update query. Update the
> [tblstudent].[Date of Birth] field with [YourLinkedExcel].[Date of Birth] and
> run the query.
>
> "MBAFMAX" wrote:
>
> > Hi,, I have existing table (tblstudent) with fields called student ID, Names
> > and Address, i have an excel sheet with same info (Stident ID, Names and
> > Address) and Date of Birth... I have created the field "Date of Birth" in the
> > tblstudent, now how do i add the excel sheet data of "Date of Birth" to
> > "tblStudent" I have tried append and update querie ,,no luck.. so what am i
> > doing wrong??
> >
> > Thanks so much.........m

 
Reply With Quote
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      8th Nov 2006
Check and see if the Excel date of birth is date or text.


"MBAFMAX" wrote:

> thanks so much,, but when i run the querie i got no data in date of birth
> field.. her is what the SQL string looks like.. i named the link table
> student1
> UPDATE students INNER JOIN students1 ON students.[STUDENT ID] =
> students1.[STUDENT ID] SET students.[date of birth] = [student1].[date of
> birth];
>
>
> "KARL DEWEY" wrote:
>
> > Link the Excel by clicking on menu FILE - Get External Data - Link Tables.
> > Find your Excel and link.
> > In a select query left join tblstudent to the linked Excel spreadsheet on
> > the Student ID. Pull down the fields and run the query. Check the displayed
> > data - if it is ok then change query to Update query. Update the
> > [tblstudent].[Date of Birth] field with [YourLinkedExcel].[Date of Birth] and
> > run the query.
> >
> > "MBAFMAX" wrote:
> >
> > > Hi,, I have existing table (tblstudent) with fields called student ID, Names
> > > and Address, i have an excel sheet with same info (Stident ID, Names and
> > > Address) and Date of Birth... I have created the field "Date of Birth" in the
> > > tblstudent, now how do i add the excel sheet data of "Date of Birth" to
> > > "tblStudent" I have tried append and update querie ,,no luck.. so what am i
> > > doing wrong??
> > >
> > > Thanks so much.........m

 
Reply With Quote
 
=?Utf-8?B?TUJBRk1BWA==?=
Guest
Posts: n/a
 
      8th Nov 2006
they are both "number"

"KARL DEWEY" wrote:

> Check and see if the Excel date of birth is date or text.
>
>
> "MBAFMAX" wrote:
>
> > thanks so much,, but when i run the querie i got no data in date of birth
> > field.. her is what the SQL string looks like.. i named the link table
> > student1
> > UPDATE students INNER JOIN students1 ON students.[STUDENT ID] =
> > students1.[STUDENT ID] SET students.[date of birth] = [student1].[date of
> > birth];
> >
> >
> > "KARL DEWEY" wrote:
> >
> > > Link the Excel by clicking on menu FILE - Get External Data - Link Tables.
> > > Find your Excel and link.
> > > In a select query left join tblstudent to the linked Excel spreadsheet on
> > > the Student ID. Pull down the fields and run the query. Check the displayed
> > > data - if it is ok then change query to Update query. Update the
> > > [tblstudent].[Date of Birth] field with [YourLinkedExcel].[Date of Birth] and
> > > run the query.
> > >
> > > "MBAFMAX" wrote:
> > >
> > > > Hi,, I have existing table (tblstudent) with fields called student ID, Names
> > > > and Address, i have an excel sheet with same info (Stident ID, Names and
> > > > Address) and Date of Birth... I have created the field "Date of Birth" in the
> > > > tblstudent, now how do i add the excel sheet data of "Date of Birth" to
> > > > "tblStudent" I have tried append and update querie ,,no luck.. so what am i
> > > > doing wrong??
> > > >
> > > > Thanks so much.........m

 
Reply With Quote
 
=?Utf-8?B?S0FSTCBERVdFWQ==?=
Guest
Posts: n/a
 
      9th Nov 2006
Access field needs to be DateTime datatype.

"MBAFMAX" wrote:

> they are both "number"
>
> "KARL DEWEY" wrote:
>
> > Check and see if the Excel date of birth is date or text.
> >
> >
> > "MBAFMAX" wrote:
> >
> > > thanks so much,, but when i run the querie i got no data in date of birth
> > > field.. her is what the SQL string looks like.. i named the link table
> > > student1
> > > UPDATE students INNER JOIN students1 ON students.[STUDENT ID] =
> > > students1.[STUDENT ID] SET students.[date of birth] = [student1].[date of
> > > birth];
> > >
> > >
> > > "KARL DEWEY" wrote:
> > >
> > > > Link the Excel by clicking on menu FILE - Get External Data - Link Tables.
> > > > Find your Excel and link.
> > > > In a select query left join tblstudent to the linked Excel spreadsheet on
> > > > the Student ID. Pull down the fields and run the query. Check the displayed
> > > > data - if it is ok then change query to Update query. Update the
> > > > [tblstudent].[Date of Birth] field with [YourLinkedExcel].[Date of Birth] and
> > > > run the query.
> > > >
> > > > "MBAFMAX" wrote:
> > > >
> > > > > Hi,, I have existing table (tblstudent) with fields called student ID, Names
> > > > > and Address, i have an excel sheet with same info (Stident ID, Names and
> > > > > Address) and Date of Birth... I have created the field "Date of Birth" in the
> > > > > tblstudent, now how do i add the excel sheet data of "Date of Birth" to
> > > > > "tblStudent" I have tried append and update querie ,,no luck.. so what am i
> > > > > doing wrong??
> > > > >
> > > > > Thanks so much.........m

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy paste records from excel to access 2007 keeny Microsoft Access External Data 2 16th Oct 2009 09:46 PM
Append a copy of records in excel to access table using a button =?Utf-8?B?TXVzYXd3YXI=?= Microsoft Access External Data 1 3rd Sep 2007 04:55 AM
Copy Records from Access Database table(more than 5 lakh records in this table) to Excel Sheet divya Microsoft Excel Programming 1 26th Oct 2006 12:12 PM
Copy Records from Access into Excel Mike Microsoft Access 1 8th Dec 2005 03:38 PM
Cannot Copy and Paste records from Excel to Access JPear Microsoft Access 2 29th Apr 2004 06:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 AM.