Help! I need to Split a memo field 
Author Message
 Help! I need to Split a memo field

I created a web based survey using an HTML form and I am automatically
saving the data into Access 97 via an ODBC insert. The database is
extremely simple, and consists of one table. I do not have any of the
following: Forms, Queries, Macros, or Modules. After the data is saved into
Access, I am going to grab it into another application (SPSS for Windows)
via  ODBC. SPSS is a statistics package and it will be used to analyze the
data. The problem is as follows.

In the survey, there are five open ended questions which are saved into
Access as five memo fields. SPSS, unfortunately, can not read in a string
variable longer than 255 characters. It simply takes the first 255
characters and chops off the rest. Please don't ask why, but it is
essential that these comments end up within SPSS (nothing like a mean or
medium on a comment).

Therefore, in Access I need to create three new fields that are 255
characters wide  for every memo field. Furthermore, everytime a record is
added via an ODBC insert Access should automatically populate these fields.
I am not sure how to accomplish this. Is there a way to create a query that
runs everytime a record is inserted (AfterInsert perhaps)?

TIA
/freud

ps. Please email me directly



Sun, 05 Sep 1999 03:00:00 GMT  
 Help! I need to Split a memo field

Quote:

> I created a web based survey using an HTML form and I am automatically
> saving the data into Access 97 via an ODBC insert. The database is
> extremely simple, and consists of one table. I do not have any of the
> following: Forms, Queries, Macros, or Modules. After the data is saved into
> Access, I am going to grab it into another application (SPSS for Windows)
> via  ODBC. SPSS is a statistics package and it will be used to analyze the
> data. The problem is as follows.

> In the survey, there are five open ended questions which are saved into
> Access as five memo fields. SPSS, unfortunately, can not read in a string
> variable longer than 255 characters. It simply takes the first 255
> characters and chops off the rest. Please don't ask why, but it is
> essential that these comments end up within SPSS (nothing like a mean or
> medium on a comment).

> Therefore, in Access I need to create three new fields that are 255
> characters wide  for every memo field. Furthermore, everytime a record is
> added via an ODBC insert Access should automatically populate these fields.
> I am not sure how to accomplish this. Is there a way to create a query that
> runs everytime a record is inserted (AfterInsert perhaps)?

> TIA
> /freud

> ps. Please email me directly


There are two ways I can think of. In 97 you can "overload" a function
and therefore do sometype of "afterupdate". It would be hard and
complex. A better suggestion would be to programiticly split the memo
into fields of 255 chars when "downloading" to SPSS. Assuming you are
writing to the file instead of "transfertext" .
--
<------------------------------------------------->
Programmers Inc and SPD | Smart Product Development
David Eholnikof, cc     | Fax 905.272.4838
902 - 2100 Sherobee Rd  | Phone 905.272.4015
Mississauga, Ontario    | suburb of Toronto



Tue, 07 Sep 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Splitting data in memo field

2. Append memo field to a different memo field

3. Memo fields - problems reporting 2 memo fields

4. Need Help - Searching Memo Fields For Strings

5. Need help with Access Memo Field

6. xBase and Memo field help needed!

7. HELP: linking txt field with a memo field

8. need a control for "memo fields"

9. How to split a name field into separate fields

10. Embed Fields within a memo field

11. Help - Searching Memo Fields For Multiple Strings

12. HELP, MSAccess 2k, MEMO Field in RS

 

 
Powered by phpBB® Forum Software