Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: importing designated fields from excel using key field

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

importing designated fields from excel using key field
spence 11.07.2006 23:57:02
I have a simple table tblInvoices with the following fields:

[InvoiceID] (key field)
[EmployeeID]
[Payrate]
[Hours]
[TaxWithholding]
[NetPay]

My staff enters the EmployeeID, Payrate, and Hours via a form and then I
export a report with these fields plus InvoiceID to Excel. I send the
spreadsheet to our payroll company. They return us the same Excel spreadsheet
with the addition of fields for TaxWithholding and NetPay. I want to be able
to import TaxWithholding and NetPay into the corresponding Access records
using key field [InvID]. I thought this would be simple but haven't been able
to figure out how to pull in particular fields in a given record. Possible?

thanks,
spence
Re: importing designated fields from excel using key field
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> 12.07.2006 00:27:23
Try linking to the Excel spreadsheet. You can then join the two tables, even
though one's in Excel.

If that doesn't work, try importing to a temporary table.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"spence" <spence[ at ]discussions.microsoft.com> wrote in message
news:EA0BA8F3-EB52-4BA4-851A-8DAE516AA6F7[ at ]microsoft.com...
[Quoted Text]
>I have a simple table tblInvoices with the following fields:
>
> [InvoiceID] (key field)
> [EmployeeID]
> [Payrate]
> [Hours]
> [TaxWithholding]
> [NetPay]
>
> My staff enters the EmployeeID, Payrate, and Hours via a form and then I
> export a report with these fields plus InvoiceID to Excel. I send the
> spreadsheet to our payroll company. They return us the same Excel
> spreadsheet
> with the addition of fields for TaxWithholding and NetPay. I want to be
> able
> to import TaxWithholding and NetPay into the corresponding Access records
> using key field [InvID]. I thought this would be simple but haven't been
> able
> to figure out how to pull in particular fields in a given record.
> Possible?
>
> thanks,
> spence


Re: importing designated fields from excel using key field
spence 12.07.2006 19:35:02
That's no problem, but then how to I actually get the data in [TaxWitholding]
and [NetPay] into tblInvoices? Is this an update query?

Thanks again,
spence

"Douglas J. Steele" wrote:

[Quoted Text]
> Try linking to the Excel spreadsheet. You can then join the two tables, even
> though one's in Excel.
>
> If that doesn't work, try importing to a temporary table.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "spence" <spence[ at ]discussions.microsoft.com> wrote in message
> news:EA0BA8F3-EB52-4BA4-851A-8DAE516AA6F7[ at ]microsoft.com...
> >I have a simple table tblInvoices with the following fields:
> >
> > [InvoiceID] (key field)
> > [EmployeeID]
> > [Payrate]
> > [Hours]
> > [TaxWithholding]
> > [NetPay]
> >
> > My staff enters the EmployeeID, Payrate, and Hours via a form and then I
> > export a report with these fields plus InvoiceID to Excel. I send the
> > spreadsheet to our payroll company. They return us the same Excel
> > spreadsheet
> > with the addition of fields for TaxWithholding and NetPay. I want to be
> > able
> > to import TaxWithholding and NetPay into the corresponding Access records
> > using key field [InvID]. I thought this would be simple but haven't been
> > able
> > to figure out how to pull in particular fields in a given record.
> > Possible?
> >
> > thanks,
> > spence
>
>
>
Re: importing designated fields from excel using key field
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> 12.07.2006 21:23:40
Yes, it would be an update query.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"spence" <spence[ at ]discussions.microsoft.com> wrote in message
news:BB381F4E-ECE5-4377-958C-96B72584A8FF[ at ]microsoft.com...
[Quoted Text]
> That's no problem, but then how to I actually get the data in
> [TaxWitholding]
> and [NetPay] into tblInvoices? Is this an update query?
>
> Thanks again,
> spence
>
> "Douglas J. Steele" wrote:
>
>> Try linking to the Excel spreadsheet. You can then join the two tables,
>> even
>> though one's in Excel.
>>
>> If that doesn't work, try importing to a temporary table.
>>
>> --
>> Doug Steele, Microsoft Access MVP
>> http://I.Am/DougSteele
>> (no private e-mails, please)
>>
>>
>> "spence" <spence[ at ]discussions.microsoft.com> wrote in message
>> news:EA0BA8F3-EB52-4BA4-851A-8DAE516AA6F7[ at ]microsoft.com...
>> >I have a simple table tblInvoices with the following fields:
>> >
>> > [InvoiceID] (key field)
>> > [EmployeeID]
>> > [Payrate]
>> > [Hours]
>> > [TaxWithholding]
>> > [NetPay]
>> >
>> > My staff enters the EmployeeID, Payrate, and Hours via a form and then
>> > I
>> > export a report with these fields plus InvoiceID to Excel. I send the
>> > spreadsheet to our payroll company. They return us the same Excel
>> > spreadsheet
>> > with the addition of fields for TaxWithholding and NetPay. I want to be
>> > able
>> > to import TaxWithholding and NetPay into the corresponding Access
>> > records
>> > using key field [InvID]. I thought this would be simple but haven't
>> > been
>> > able
>> > to figure out how to pull in particular fields in a given record.
>> > Possible?
>> >
>> > thanks,
>> > spence
>>
>>
>>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net