A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Error 2465



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2006, 09:46 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Error 2465

I have a subform and I'm using the following statement in an event

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year([Me.FeeDate]), Month([Me.FeeDate]) + 12,
Day([Me.FeeDate]))

I keep getting error 2465 - Microsoft Access can't find the field '|'
referred to in your expression. I don't see it, but I may not know what to
look for. Could someone tell me what I'm doing wrong here.

Thanks,
RandyM
  #2  
Old May 18th, 2006, 10:14 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Error 2465

Either use:

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year(Me.FeeDate), _
Month(Me.FeeDate) + 12, Day(Me.FeeDate))

or

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year([FeeDate]), _
Month([FeeDate]) + 12, Day([FeeDate]))

By enclosing Me.FeeDate in [] Access is looking for a field
in the recordset called literally Me.FeeDate which of course does not exist.
--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conrad...essjunkie.html
http://www.access.qbuilt.com/html/articles.html

"WCDoan" wrote in message:
...

I have a subform and I'm using the following statement in an event

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year([Me.FeeDate]), Month([Me.FeeDate]) + 12,
Day([Me.FeeDate]))

I keep getting error 2465 - Microsoft Access can't find the field '|'
referred to in your expression. I don't see it, but I may not know what to
look for. Could someone tell me what I'm doing wrong here.



  #3  
Old May 19th, 2006, 01:05 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Error 2465

Jeff,
Thanks so much. That cleared it right up. I copied that from somewhere,
don't remember and it had the brackets, so I used them. I'm still relatively
new to Access tho' thanks to everyone here's help, reading books and
articles, and following links that yall post, I think I might be on the road
to turning into a 'junkie' myself. Hope I can make it!

Thanks again,
RandyM

"Jeff Conrad" wrote:

Either use:

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year(Me.FeeDate), _
Month(Me.FeeDate) + 12, Day(Me.FeeDate))

or

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year([FeeDate]), _
Month([FeeDate]) + 12, Day([FeeDate]))

By enclosing Me.FeeDate in [] Access is looking for a field
in the recordset called literally Me.FeeDate which of course does not exist.
--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conrad...essjunkie.html
http://www.access.qbuilt.com/html/articles.html

"WCDoan" wrote in message:
...

I have a subform and I'm using the following statement in an event

Dim FeeRenewalDate As Date
FeeRenewalDate = DateSerial(Year([Me.FeeDate]), Month([Me.FeeDate]) + 12,
Day([Me.FeeDate]))

I keep getting error 2465 - Microsoft Access can't find the field '|'
referred to in your expression. I don't see it, but I may not know what to
look for. Could someone tell me what I'm doing wrong here.




  #4  
Old May 19th, 2006, 03:56 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Error 2465

Hi Randy,

Glad you have it working now.

I think I might be on the road
to turning into a 'junkie' myself. Hope I can make it!


Excellent, welcome to the Collective!
Take a visit he

http://home.bendbroadband.com/conrad...resources.html

Your Borg designation will be along shortly....

vbg
--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conrad...essjunkie.html
http://www.access.qbuilt.com/html/articles.html

"WCDoan" wrote in message:
...

Jeff,
Thanks so much. That cleared it right up. I copied that from somewhere,
don't remember and it had the brackets, so I used them. I'm still relatively
new to Access tho' thanks to everyone here's help, reading books and
articles, and following links that yall post, I think I might be on the road
to turning into a 'junkie' myself. Hope I can make it!



  #5  
Old April 14th, 2008, 02:37 PM posted to microsoft.public.access.forms
access user
external usenet poster
 
Posts: 78
Default Error 2465

My code is getting one of them also. Below is it:

Private Sub Form_AfterUpdate()

Call LockBoundControls(Me, Nz(Me("MRA_Form").Form!Complete.Value, False),
"Complete")

End Sub

Private Sub Form_Current()

Call LockBoundControls(Me, Nz(Me("MRA_Form").Form!Complete.Value, False),
"Complete")

End Sub

I'm referring to the control 'Complete' which is on a sub-form of the
parent's. How do I satisfy the compiler?

"Jeff Conrad" wrote:

Hi Randy,

Glad you have it working now.

I think I might be on the road
to turning into a 'junkie' myself. Hope I can make it!


Excellent, welcome to the Collective!
Take a visit he

http://home.bendbroadband.com/conrad...resources.html

Your Borg designation will be along shortly....

vbg
--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conrad...essjunkie.html
http://www.access.qbuilt.com/html/articles.html

"WCDoan" wrote in message:
...

Jeff,
Thanks so much. That cleared it right up. I copied that from somewhere,
don't remember and it had the brackets, so I used them. I'm still relatively
new to Access tho' thanks to everyone here's help, reading books and
articles, and following links that yall post, I think I might be on the road
to turning into a 'junkie' myself. Hope I can make it!




 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.