Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default accessing twice a memo field in a recordset

I have filled a recordset with an sql query that reads from an Access database.

When I try to access twice the same field which in Access was a memo, the
first time i get the values that are in the database, but the second time the
expression
oRs.Fields("MM_ISSUES") is equal to Null.

Can someone help please??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default accessing twice a memo field in a recordset

Here is usful info from the Acess VBA Help under Recordset Object



When you open a Recordset, the current record is positioned to the first
record (if any) and the BOF and EOF properties are set to False. If there are
no records, the BOF and EOF property settings are True.

You can use the MoveFirst, MoveLast, MoveNext, and MovePrevious methods; the
Move method; and the AbsolutePosition, AbsolutePage, and Filter properties to
reposition the current record, assuming the provider supports the relevant
functionality. Forward-only Recordset objects support only the MoveNext
method. When you use the Move methods to visit each record (or enumerate the
Recordset), you can use the BOF and EOF properties to determine if you've
moved beyond the beginning or end of the Recordset.



"majorri" wrote:

I have filled a recordset with an sql query that reads from an Access database.

When I try to access twice the same field which in Access was a memo, the
first time i get the values that are in the database, but the second time the
expression
oRs.Fields("MM_ISSUES") is equal to Null.

Can someone help please??

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default accessing twice a memo field in a recordset

Thanks for that Joel.

But my problem is when i access twice the same field that relates to a same
row. Basically it is as if i was accessing twice the same column for the very
same row.


"Joel" wrote:

Here is usful info from the Acess VBA Help under Recordset Object



When you open a Recordset, the current record is positioned to the first
record (if any) and the BOF and EOF properties are set to False. If there are
no records, the BOF and EOF property settings are True.

You can use the MoveFirst, MoveLast, MoveNext, and MovePrevious methods; the
Move method; and the AbsolutePosition, AbsolutePage, and Filter properties to
reposition the current record, assuming the provider supports the relevant
functionality. Forward-only Recordset objects support only the MoveNext
method. When you use the Move methods to visit each record (or enumerate the
Recordset), you can use the BOF and EOF properties to determine if you've
moved beyond the beginning or end of the Recordset.



"majorri" wrote:

I have filled a recordset with an sql query that reads from an Access database.

When I try to access twice the same field which in Access was a memo, the
first time i get the values that are in the database, but the second time the
expression
oRs.Fields("MM_ISSUES") is equal to Null.

Can someone help please??

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default accessing twice a memo field in a recordset

thanks for that Joel.

But my problem is within a same row of a recordset trying to access the same
field twice. Its like if in a database i was trying to access twice the same
column for a given row.

thanks

"majorri" wrote:

I have filled a recordset with an sql query that reads from an Access database.

When I try to access twice the same field which in Access was a memo, the
first time i get the values that are in the database, but the second time the
expression
oRs.Fields("MM_ISSUES") is equal to Null.

Can someone help please??

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default accessing twice a memo field in a recordset

Access the data moved the pointer to the nexr row. The second time you look
for the data it is not there. I think you have to move the pointer.

"majorri" wrote:

Thanks for that Joel.

But my problem is when i access twice the same field that relates to a same
row. Basically it is as if i was accessing twice the same column for the very
same row.


"Joel" wrote:

Here is usful info from the Acess VBA Help under Recordset Object



When you open a Recordset, the current record is positioned to the first
record (if any) and the BOF and EOF properties are set to False. If there are
no records, the BOF and EOF property settings are True.

You can use the MoveFirst, MoveLast, MoveNext, and MovePrevious methods; the
Move method; and the AbsolutePosition, AbsolutePage, and Filter properties to
reposition the current record, assuming the provider supports the relevant
functionality. Forward-only Recordset objects support only the MoveNext
method. When you use the Move methods to visit each record (or enumerate the
Recordset), you can use the BOF and EOF properties to determine if you've
moved beyond the beginning or end of the Recordset.



"majorri" wrote:

I have filled a recordset with an sql query that reads from an Access database.

When I try to access twice the same field which in Access was a memo, the
first time i get the values that are in the database, but the second time the
expression
oRs.Fields("MM_ISSUES") is equal to Null.

Can someone help please??

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
(ADO)Getting data from access database Memo field Mike Excel Programming 1 January 6th 09 02:11 PM
Access Memo field to Excel Textbox ABM Excel Programming 1 February 13th 07 06:38 PM
field shows (memo) not data RogerJ Excel Discussion (Misc queries) 0 July 12th 06 11:31 PM
Memo Field Not pasting correctly in XL jojotherider Excel Discussion (Misc queries) 1 October 17th 05 08:42 PM
Fill a Memo field Terry VanDuzee Excel Programming 3 February 9th 04 05:03 PM


All times are GMT +1. The time now is 01:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"