PC Review


Reply
Thread Tools Rate Thread

Database record add

 
 
=?Utf-8?B?T2xkamF5?=
Guest
Posts: n/a
 
      13th Oct 2006
I have the following macro that adds a record to the database "TimeRecords"

Application.Goto Reference:="Export_Data"
Selection.Copy
Application.Goto Reference:="PT_Data" 'first row of database
Selection.End(xlDown).Select
ActiveCell.Offset(rowOffset:=1, columnOffset:=0).Activate

Selection.PasteSpecial Paste:=xlValues

My problem is the database range does not expand to add this record

I do not want to use the user database form to add this record

oldjay
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      13th Oct 2006
You need to work an Autofit in there somewhere.

"Oldjay" wrote:

> I have the following macro that adds a record to the database "TimeRecords"
>
> Application.Goto Reference:="Export_Data"
> Selection.Copy
> Application.Goto Reference:="PT_Data" 'first row of database
> Selection.End(xlDown).Select
> ActiveCell.Offset(rowOffset:=1, columnOffset:=0).Activate
>
> Selection.PasteSpecial Paste:=xlValues
>
> My problem is the database range does not expand to add this record
>
> I do not want to use the user database form to add this record
>
> oldjay

 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      13th Oct 2006
See the reply to your post in the misc. group.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"Oldjay" <(E-Mail Removed)>
wrote in message
I have the following macro that adds a record to the database "TimeRecords"
Application.Goto Reference:="Export_Data"
Selection.Copy
Application.Goto Reference:="PT_Data" 'first row of database
Selection.End(xlDown).Select
ActiveCell.Offset(rowOffset:=1, columnOffset:=0).Activate

Selection.PasteSpecial Paste:=xlValues
My problem is the database range does not expand to add this record
I do not want to use the user database form to add this record
oldjay
 
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
How do I insert a photo in a database record for that record only Chris Microsoft Access Getting Started 3 30th Dec 2007 08:17 PM
Clone a record, edit it and add as new record to database. tony_schullo@csx.com Microsoft Excel Programming 0 26th Oct 2007 04:34 PM
Cannot save record. Jet database engine cannot find a record =?Utf-8?B?SmFtZXMxOTU0?= Microsoft Access 0 12th Sep 2006 01:35 AM
EXPORT ACCESS TO SQL DATABASE RECORD BY RECORD... gssitaly via AccessMonster.com Microsoft Access VBA Modules 1 19th Jun 2006 04:14 PM
Copy fields from one record into another record in same database GINNY Microsoft Access Form Coding 2 15th Apr 2004 01:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:45 AM.