Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 9 posts ] 
ACCESS 
Author Message

Joined: Tue May 18, 2010 2:02 pm
Posts: 26
Post ACCESS

Hi,

Is it a way to update biography field with biography_plaintext ?
I imported a lot of author's biography, upgrading biography_plaintext field with an Excel file, but I can't have access to BLOB biography...


Sat Jun 02, 2012 5:23 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: ACCESS

LeGhe wrote:
Hi,

Is it a way to update biography field with biography_plaintext ?
I imported a lot of author's biography, upgrading biography_plaintext field with an Excel file, but I can't have access to BLOB biography...

Is the field empty when you open the data entry window, and empty in the explorer?
What version are you using?

_________________
Fredrik Nordbakke
www.fnprg.com


Mon Jun 04, 2012 8:54 am
Profile WWW

Joined: Tue May 18, 2010 2:02 pm
Posts: 26
Post Re: ACCESS

FredrikN wrote:
Is the field empty when you open the data entry window, and empty in the explorer?
What version are you using?


V10.13

Some are empty (the new ones), other are written with the old biography


Mon Jun 04, 2012 9:06 am
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: ACCESS

LeGhe wrote:
FredrikN wrote:
Is the field empty when you open the data entry window, and empty in the explorer?
What version are you using?


V10.13

Not sure if it will make any difference, but please try v10.14.

Quote:
Some are empty (the new ones), other are written with the old biography

Then you need to clear the "Biography" (BLOB) field.

The problem here is that the program will read the memo text from the BLOB field. Only if this is empty it will read the "plain text" field.

_________________
Fredrik Nordbakke
www.fnprg.com


Mon Jun 04, 2012 11:47 am
Profile WWW

Joined: Tue May 18, 2010 2:02 pm
Posts: 26
Post Re: ACCESS

FredrikN wrote:
The problem here is that the program will read the memo text from the BLOB field. Only if this is empty it will read the "plain text" field.


Is it a way to transform the "plain text" field in a BLOB field ?


Mon Jun 04, 2012 12:06 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: ACCESS

LeGhe wrote:
FredrikN wrote:
The problem here is that the program will read the memo text from the BLOB field. Only if this is empty it will read the "plain text" field.


Is it a way to transform the "plain text" field in a BLOB field ?

That is a bit trickier. How did you write data to the "plaintext" field?

_________________
Fredrik Nordbakke
www.fnprg.com


Mon Jun 04, 2012 12:12 pm
Profile WWW

Joined: Tue May 18, 2010 2:02 pm
Posts: 26
Post Re: ACCESS

FredrikN wrote:
That is a bit trickier. How did you write data to the "plaintext" field?

I've crossed two tables in Access with SQL query, in order to insert new biographies corrected by a friend under Excel, into the "plaintext" field.
All is right, but the new biographies are in RTF, with tags like <br>, and when I need to export in .txt or .xls, all the fields are desorganized, due to <br> tag.

So, I'd like to transform them... or inject automatically (3000 authors...) the "plain text" in the biography BLOB, to generate a correct export


Mon Jun 04, 2012 12:29 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: ACCESS

LeGhe wrote:
FredrikN wrote:
That is a bit trickier. How did you write data to the "plaintext" field?

I've crossed two tables in Access with SQL query, in order to insert new biographies corrected by a friend under Excel, into the "plaintext" field.
All is right, but the new biographies are in RTF, with tags like <br>, and when I need to export in .txt or .xls, all the fields are desorganized, due to <br> tag.

So, I'd like to transform them... or inject automatically (3000 authors...) the "plain text" in the biography BLOB, to generate a correct export

I'm afraid the only way to get the correct text formatting (whether the source text is in RTF or HTML) is to copy text and paste it into the memo with Edit=>Paste in the memo edit window. Simply copying formatted (plain) text into the BLOB field will not work.

_________________
Fredrik Nordbakke
www.fnprg.com


Mon Jun 04, 2012 1:02 pm
Profile WWW

Joined: Tue May 18, 2010 2:02 pm
Posts: 26
Post Re: ACCESS

FredrikN wrote:
I'm afraid the only way to get the correct text formatting (whether the source text is in RTF or HTML) is to copy text and paste it into the memo with Edit=>Paste in the memo edit window. Simply copying formatted (plain) text into the BLOB field will not work.


Arghhh...
Ok. I found another way :

- Open a new database
- Import a person Excel File -> Generate BLOB
- Go to Access and rename "person" table of the new database, copy and paste it in the main database
- in SQL mode, UPDATE person, personnew SET person.biography=personnew.biography WHERE person.name=personnew.name

It works fine


Mon Jun 04, 2012 5:15 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.