Actuarial Outpost
 
Go Back   Actuarial Outpost > Actuarial Discussion Forum > Software & Technology
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

Bengaluru - Chennai - Hyderabad - Pune
Actuarial Jobs in India
New Delhi - Mumbai - Gurgaon


Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2002, 03:46 PM
Gates Is Antichrist's Avatar
Gates Is Antichrist Gates Is Antichrist is offline
Member
SOA AAA
 
Join Date: Feb 2002
Location: Hell
Favorite beer: Pacifico
Posts: 156
Default Prob. copying Excel cell contents to Access field names

Greetings software geniuses. In an Access table I have the design grid up, so I can change field names. In Excel, I have a column with the field names (which are nonnumeric).

If I highlight a cell, Ctrl-C, go to Access and hit Ctl-V and enter, Access rejects it.
If I F2 a cell, scrape the 6 letters, Ctrl-C, go to Access and hit Ctl-V and enter, Access accepts it.

It's as though there's a control character, like a line feed, in the copy buffer. Any ideas or suggestions? A VBA solution to get it in the copy buffer is okay; then i can just hit a hotkey in Excel to copy it, and move down to the next. (However, activecell.copy fell into the same trap.)

TIA. There are tons of fields, so any effort-saving counts here.
__________________
______
ON STRIKE. Thomas Jefferson and I are on strike against AO over a little matter called the First Amendment and censorship against dissenting views. I hereby choose to toss my voluntary contributions into the Harbor rather than accede in slavery to the oppressor.
Reply With Quote
  #2  
Old 09-26-2002, 03:51 PM
GadgetGeek's Avatar
GadgetGeek GadgetGeek is online now
Note Contributor
SOA AAA
 
Join Date: Sep 2001
Location: I'm here, where are you?
Studying for a way to escape
College: Illinois College ('87)
Favorite beer: Stag
Posts: 10,525
Default

If the field names are all in a row in excel (not column), save the spreadsheet, then in access, import a table, type .xls and find that sheet. Then check the box that has "first row contains field names". Just a thought.
Reply With Quote
  #3  
Old 09-26-2002, 04:14 PM
PK's Avatar
PK PK is offline
Member
CAS
 
Join Date: Jan 2002
Location: 18 miles due west of the GWB.
Favorite beer: Dr. Pepper
Posts: 1,660
Default

I tried a copy/paste into the notepad (raw text).

When all I do is copy/paste, I get the info, plus a linefeed. If I go through the "F2 a cell, scrape the 6 letters, Ctrl-C", routine, I do not get the linefeed.

But,
I cannot replicate your problem. If I go the the "table" tab in Access and hit the "new" button and select "design view", I have no problem pasting directly from XL even without the F2 stuff.

We are in XL and Access 97. Are you in a different version?

P
Reply With Quote
  #4  
Old 09-26-2002, 04:38 PM
Gates Is Antichrist's Avatar
Gates Is Antichrist Gates Is Antichrist is offline
Member
SOA AAA
 
Join Date: Feb 2002
Location: Hell
Favorite beer: Pacifico
Posts: 156
Default

PK, my bad for omitting: XL02 and Access2K.

My Notepad result duplicates yours. But in Access 2000 I can paste with control-V, but upon hitting enter get "the field name is invalid." Am I the only one to see this?

Thank you Geek, that's smart advice. It may be a long trip, but if I import the Access table to Excel, insert the headers, save, and re-import to Access, mission accomplished. Thanks - this is the way to go for < 64K records (which unfortunately doesn't apply to me here )
__________________
______
ON STRIKE. Thomas Jefferson and I are on strike against AO over a little matter called the First Amendment and censorship against dissenting views. I hereby choose to toss my voluntary contributions into the Harbor rather than accede in slavery to the oppressor.
Reply With Quote
  #5  
Old 09-26-2002, 09:43 PM
PK's Avatar
PK PK is offline
Member
CAS
 
Join Date: Jan 2002
Location: 18 miles due west of the GWB.
Favorite beer: Dr. Pepper
Posts: 1,660
Default

What happens if you {Ctl-V}{backspace}{enter}

Does it remove the linefeed, or the last letter of your column name?

P
Reply With Quote
  #6  
Old 09-26-2002, 10:26 PM
Gates Is Antichrist's Avatar
Gates Is Antichrist Gates Is Antichrist is offline
Member
SOA AAA
 
Join Date: Feb 2002
Location: Hell
Favorite beer: Pacifico
Posts: 156
Default

Quote:
Originally Posted by PK
What happens if you {Ctl-V}{backspace}{enter}
Does it remove the linefeed, or the last letter of your column name?
P
It doesn't help. I can even cut it inside the field name, paste back, and can't hit enter. But if I then escape, that same content will paste in fine.

Since no one else indicated a similar result, perhaps it's just me.
__________________
______
ON STRIKE. Thomas Jefferson and I are on strike against AO over a little matter called the First Amendment and censorship against dissenting views. I hereby choose to toss my voluntary contributions into the Harbor rather than accede in slavery to the oppressor.
Reply With Quote
Reply

Thread Tools
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 On
HTML code is Off


All times are GMT -4. The time now is 02:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.20722 seconds with 7 queries