dbTalk Databases Forums  

rs! question

comp.databases.ms-access comp.databases.ms-access


Discuss rs! question in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cyberwolf
 
Posts: n/a

Default rs! question - 02-29-2008 , 11:00 AM






Why can't I write to a field name 2ndItemNumber with

rs!2ndItemNumber = st2nd. When I type that in I get a message expected end
of statement and "ndItemNumber" is highlighted. I know it has something to
do with the 2 but I can't figure out how to get around it.


Reply With Quote
  #2  
Old   
ARC
 
Posts: n/a

Default Re: rs! question - 02-29-2008 , 12:37 PM






Yeah, you can't start a field with a number sign and reference it without
special treatment.

A fix would be to bracket the field, as in: rs![2ndItemNumber] = st2nd

Hope this helps,

"Cyberwolf" <u41738@uwe> wrote

Quote:
Why can't I write to a field name 2ndItemNumber with

rs!2ndItemNumber = st2nd. When I type that in I get a message expected
end
of statement and "ndItemNumber" is highlighted. I know it has something
to
do with the 2 but I can't figure out how to get around it.



Reply With Quote
  #3  
Old   
Arch
 
Posts: n/a

Default Re: rs! question - 02-29-2008 , 02:17 PM



On Fri, 29 Feb 2008 12:37:55 -0600, "ARC" <PCESoft (AT) PCESoft (DOT) invalid>
wrote:

Quote:
Yeah, you can't start a field with a number sign and reference it without
special treatment.

A fix would be to bracket the field, as in: rs![2ndItemNumber] = st2nd

Hope this helps,

"Cyberwolf" <u41738@uwe> wrote

Why can't I write to a field name 2ndItemNumber with

rs!2ndItemNumber = st2nd. When I type that in I get a message expected
end
of statement and "ndItemNumber" is highlighted. I know it has something
to
do with the 2 but I can't figure out how to get around it.

Or,

rs("2ndItemNumber") = st2nd


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.