Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Change data on Date

 
   Database Help (Home) -> MS Access RSS
Next:  your discipline  
Author Message
Bob Vance

External


Since: Mar 25, 2008
Posts: 180



(Msg. 1) Posted: Sat Oct 04, 2008 10:26 pm
Post subject: Change data on Date
Archived from groups: microsoft>public>access (more info?)

On My form I am Trying to write a code if the Horse is 3 years old F changes
to M (Text)
If [cbSex] > Year 3 [cbDateof Birth] repalce F with M

--
Thanks in advance for any help with this......Bob
MS Access 2007 accdb
Windows XP Home Edition Ver 5.1 Service Pack 3

 >> Stay informed about: Change data on Date 
Back to top
Login to vote
"Ken Snell

External


Since: Jan 23, 2008
Posts: 199



(Msg. 2) Posted: Sat Oct 04, 2008 10:58 pm
Post subject: Re: Change data on Date [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Generic expression:

=IIf([AgeOfHorse] > 3, Replace([SexOfHorse], "F", "M"), [SexOfHorse])

--

Ken Snell
<MS ACCESS MVP>




"Bob Vance" <rjvance.DeleteThis@ihug.co.nz> wrote in message
news:%23u63MooJJHA.1156@TK2MSFTNGP04.phx.gbl...
> On My form I am Trying to write a code if the Horse is 3 years old F
> changes to M (Text)
> If [cbSex] > Year 3 [cbDateof Birth] repalce F with M
>
> --
> Thanks in advance for any help with this......Bob
> MS Access 2007 accdb
> Windows XP Home Edition Ver 5.1 Service Pack 3
>
>

 >> Stay informed about: Change data on Date 
Back to top
Login to vote
Bob Vance

External


Since: Mar 25, 2008
Posts: 180



(Msg. 3) Posted: Tue Oct 21, 2008 6:25 pm
Post subject: Re: Change data on Date [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Ken where do i place this code..............Thanks Bob
=IIf([tbAge] > 3, Replace([cbsex], "F", "M"), [cbsex])

"Ken Snell (MVP)" <kthsneisllis9.DeleteThis@ncoomcastt.renaetl> wrote in message
news:uF2wqYpJJHA.1264@TK2MSFTNGP06.phx.gbl...
> Generic expression:
>
> =IIf([AgeOfHorse] > 3, Replace([SexOfHorse], "F", "M"), [SexOfHorse])
>
> --
>
> Ken Snell
> <MS ACCESS MVP>
>
>
>
>
> "Bob Vance" <rjvance.DeleteThis@ihug.co.nz> wrote in message
> news:%23u63MooJJHA.1156@TK2MSFTNGP04.phx.gbl...
>> On My form I am Trying to write a code if the Horse is 3 years old F
>> changes to M (Text)
>> If [cbSex] > Year 3 [cbDateof Birth] repalce F with M
>>
>> --
>> Thanks in advance for any help with this......Bob
>> MS Access 2007 accdb
>> Windows XP Home Edition Ver 5.1 Service Pack 3
>>
>>
>
>
 >> Stay informed about: Change data on Date 
Back to top
Login to vote
Bob Vance

External


Since: Mar 25, 2008
Posts: 180



(Msg. 4) Posted: Tue Oct 21, 2008 8:25 pm
Post subject: Re: Change data on Date [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Ken Got it put it in a Query!
Regards Bob

"Bob Vance" <rjvance DeleteThis @ihug.co.nz> wrote in message
news:ugkj0h8MJHA.5232@TK2MSFTNGP05.phx.gbl...
> Thanks Ken where do i place this code..............Thanks Bob
> =IIf([tbAge] > 3, Replace([cbsex], "F", "M"), [cbsex])
>
> "Ken Snell (MVP)" <kthsneisllis9 DeleteThis @ncoomcastt.renaetl> wrote in message
> news:uF2wqYpJJHA.1264@TK2MSFTNGP06.phx.gbl...
>> Generic expression:
>>
>> =IIf([AgeOfHorse] > 3, Replace([SexOfHorse], "F", "M"), [SexOfHorse])
>>
>> --
>>
>> Ken Snell
>> <MS ACCESS MVP>
>>
>>
>>
>>
>> "Bob Vance" <rjvance DeleteThis @ihug.co.nz> wrote in message
>> news:%23u63MooJJHA.1156@TK2MSFTNGP04.phx.gbl...
>>> On My form I am Trying to write a code if the Horse is 3 years old F
>>> changes to M (Text)
>>> If [cbSex] > Year 3 [cbDateof Birth] repalce F with M
>>>
>>> --
>>> Thanks in advance for any help with this......Bob
>>> MS Access 2007 accdb
>>> Windows XP Home Edition Ver 5.1 Service Pack 3
>>>
>>>
>>
>>
>
>
 >> Stay informed about: Change data on Date 
Back to top
Login to vote
"Ken Snell

External


Since: Jan 23, 2008
Posts: 199



(Msg. 5) Posted: Tue Oct 21, 2008 10:34 pm
Post subject: Re: Change data on Date [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Bob Vance" <rjvance.TakeThisOut@ihug.co.nz> wrote in message
news:eo$CBn9MJHA.2824@TK2MSFTNGP06.phx.gbl...
> Thanks Ken Got it put it in a Query!

Or use it as the expression for a textbox's ControlSource property.
--

Ken Snell
<MS ACCESS MVP>






> Regards Bob
>
> "Bob Vance" <rjvance.TakeThisOut@ihug.co.nz> wrote in message
> news:ugkj0h8MJHA.5232@TK2MSFTNGP05.phx.gbl...
>> Thanks Ken where do i place this code..............Thanks Bob
>> =IIf([tbAge] > 3, Replace([cbsex], "F", "M"), [cbsex])
>>
>> "Ken Snell (MVP)" <kthsneisllis9.TakeThisOut@ncoomcastt.renaetl> wrote in message
>> news:uF2wqYpJJHA.1264@TK2MSFTNGP06.phx.gbl...
>>> Generic expression:
>>>
>>> =IIf([AgeOfHorse] > 3, Replace([SexOfHorse], "F", "M"), [SexOfHorse])
>>>
>>> --
>>>
>>> Ken Snell
>>> <MS ACCESS MVP>
>>>
>>>
>>>
>>>
>>> "Bob Vance" <rjvance.TakeThisOut@ihug.co.nz> wrote in message
>>> news:%23u63MooJJHA.1156@TK2MSFTNGP04.phx.gbl...
>>>> On My form I am Trying to write a code if the Horse is 3 years old F
>>>> changes to M (Text)
>>>> If [cbSex] > Year 3 [cbDateof Birth] repalce F with M
>>>>
>>>> --
>>>> Thanks in advance for any help with this......Bob
>>>> MS Access 2007 accdb
>>>> Windows XP Home Edition Ver 5.1 Service Pack 3
>>>>
>>>>
>>>
>>>
>>
>>
>
>
 >> Stay informed about: Change data on Date 
Back to top
Login to vote
Bob Vance

External


Since: Mar 25, 2008
Posts: 180



(Msg. 6) Posted: Wed Oct 22, 2008 4:25 am
Post subject: Re: Change data on Date [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Ken, would not work in a textbox Control source...thanks Bob

"Ken Snell (MVP)" <kthsneisllis9 RemoveThis @ncoomcastt.renaetl> wrote in message
news:u1%238t6%23MJHA.5692@TK2MSFTNGP04.phx.gbl...
> "Bob Vance" <rjvance RemoveThis @ihug.co.nz> wrote in message
> news:eo$CBn9MJHA.2824@TK2MSFTNGP06.phx.gbl...
>> Thanks Ken Got it put it in a Query!
>
> Or use it as the expression for a textbox's ControlSource property.
> --
>
> Ken Snell
> <MS ACCESS MVP>
>
>
>
>
>
>
>> Regards Bob
>>
>> "Bob Vance" <rjvance RemoveThis @ihug.co.nz> wrote in message
>> news:ugkj0h8MJHA.5232@TK2MSFTNGP05.phx.gbl...
>>> Thanks Ken where do i place this code..............Thanks Bob
>>> =IIf([tbAge] > 3, Replace([cbsex], "F", "M"), [cbsex])
>>>
>>> "Ken Snell (MVP)" <kthsneisllis9 RemoveThis @ncoomcastt.renaetl> wrote in message
>>> news:uF2wqYpJJHA.1264@TK2MSFTNGP06.phx.gbl...
>>>> Generic expression:
>>>>
>>>> =IIf([AgeOfHorse] > 3, Replace([SexOfHorse], "F", "M"), [SexOfHorse])
>>>>
>>>> --
>>>>
>>>> Ken Snell
>>>> <MS ACCESS MVP>
>>>>
>>>>
>>>>
>>>>
>>>> "Bob Vance" <rjvance RemoveThis @ihug.co.nz> wrote in message
>>>> news:%23u63MooJJHA.1156@TK2MSFTNGP04.phx.gbl...
>>>>> On My form I am Trying to write a code if the Horse is 3 years old F
>>>>> changes to M (Text)
>>>>> If [cbSex] > Year 3 [cbDateof Birth] repalce F with M
>>>>>
>>>>> --
>>>>> Thanks in advance for any help with this......Bob
>>>>> MS Access 2007 accdb
>>>>> Windows XP Home Edition Ver 5.1 Service Pack 3
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
 >> Stay informed about: Change data on Date 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> MS Access All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]