 | 
28-Jul-2006, 08:13 AM
|  | Guest | | | | | | | | | | Re: What's wrong with this VBA ? Try
if not IsNull(Forms![ABC].[totalyear]) ...
HTH
Pieter
"Martin (Martin Lee)" wrote in message
news:ewQgzDwgGHA.4776@TK2MSFTNGP05.phx.gbl...
>
> If Forms![ABC].[totalyear] Is Not Null And Forms![ABC].[paidyear] Is Not
> Null Then Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
> If Forms![ABC].[paidyear] < 3 And Forms![ABC].[regionplace] = "USA"
> Then
> aiprs6 = "Alert, paidyear too small!!!"
> End If
> Else
> End If
>
> MsgBox aiprs6, , "AI"
>
>
> ----------------------------- Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
>
> The problem ACCESS msg is "needing object" ( I transfer from Chinese to
> English, thus not sure the exact English is )
> | 
28-Jul-2006, 08:13 AM
|  | Guest | | | | | | | | | | Re: What's wrong with this VBA ? You are great! It works!
However, I wonder why my sentence is not workable, my sentence really seems
like a workable and "reasonable" VBA
Thanks again!
Martin Lee
"Pieter Wijnen"
дÈëÏûÏ¢ÐÂÎÅ:O85UKgwgGHA.1324@TK2MSFTNGP04.phx.gbl ...
> Try
> if not IsNull(Forms![ABC].[totalyear]) ...
>
> HTH
>
> Pieter
>
> "Martin (Martin Lee)" wrote in message
> news:ewQgzDwgGHA.4776@TK2MSFTNGP05.phx.gbl... Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
>>
>> If Forms![ABC].[totalyear] Is Not Null And Forms![ABC].[paidyear] Is Not
>> Null Then
>> If Forms![ABC].[paidyear] < 3 And Forms![ABC].[regionplace] = "USA"
>> Then
>> aiprs6 = "Alert, paidyear too small!!!"
>> End If
>> Else
>> End If
>>
>> MsgBox aiprs6, , "AI"
>>
>>
>> -----------------------------
>>
>> The problem ACCESS msg is "needing object" ( I transfer from Chinese to Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
>> English, thus not sure the exact English is )
>>
>
> | 
28-Jul-2006, 08:13 AM
|  | Guest | | | | | | | | | | Re: What's wrong with this VBA ? "Is Not Null" is SQL, not VBA.
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
"Martin (Martin Lee)" wrote in message
news:uLhGfpygGHA.1276@TK2MSFTNGP03.phx.gbl...
> You are great! It works!
>
> However, I wonder why my sentence is not workable, my sentence really
seems
> like a workable and "reasonable" VBA  Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
>
> Thanks again!
>
> Martin Lee
>
>
> "Pieter Wijnen"
>
..with.norway>
> дÈëÏûÏ¢ÐÂÎÅ:O85UKgwgGHA.1324@TK2MSFTNGP04.phx.gbl ...
> > Try
> > if not IsNull(Forms![ABC].[totalyear]) ...
> >
> > HTH
> >
> > Pieter
> >
> > "Martin (Martin Lee)" wrote in message
> > news:ewQgzDwgGHA.4776@TK2MSFTNGP05.phx.gbl...
> >>
> >> If Forms![ABC].[totalyear] Is Not Null And Forms![ABC].[paidyear] Is
Not
> >> Null Then Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
> >> If Forms![ABC].[paidyear] < 3 And Forms![ABC].[regionplace] = "USA"
> >> Then
> >> aiprs6 = "Alert, paidyear too small!!!"
> >> End If
> >> Else
> >> End If
> >>
> >> MsgBox aiprs6, , "AI"
> >>
> >>
> >> -----------------------------
> >>
> >> The problem ACCESS msg is "needing object" ( I transfer from Chinese to
> >> English, thus not sure the exact English is )
> >>
> >
> >
>
> | 
28-Jul-2006, 08:13 AM
|  | Guest | | | | | | | | | | Re: What's wrong with this VBA ? Hi Mr. Steele !
I remembered not long before, I have made the same mistake. It looks quite Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10474
the same to me.
Martin Lee
"Douglas J Steele" дÈëÏûÏ¢ÐÂÎÅ:e0FDaxygGHA.1272@TK2MSFTNGP03.phx.gbl ...
> "Is Not Null" is SQL, not VBA.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Martin (Martin Lee)" wrote in message
> news:uLhGfpygGHA.1276@TK2MSFTNGP03.phx.gbl...
>> You are great! It works!
>>
>> However, I wonder why my sentence is not workable, my sentence really
> seems
>> like a workable and "reasonable" VBA 
>>
>> Thanks again!
>>
>> Martin Lee
>>
>>
>> "Pieter Wijnen"
>>
>
> .with.norway>
>> дÈëÏûÏ¢ÐÂÎÅ:O85UKgwgGHA.1324@TK2MSFTNGP04.phx.gbl ...
>> > Try
>> > if not IsNull(Forms![ABC].[totalyear]) ...
>> >
>> > HTH
>> >
>> > Pieter
>> >
>> > "Martin (Martin Lee)" wrote in message
>> > news:ewQgzDwgGHA.4776@TK2MSFTNGP05.phx.gbl...
>> >>
>> >> If Forms![ABC].[totalyear] Is Not Null And Forms![ABC].[paidyear] Is
> Not
>> >> Null Then
>> >> If Forms![ABC].[paidyear] < 3 And Forms![ABC].[regionplace] = "USA"
>> >> Then
>> >> aiprs6 = "Alert, paidyear too small!!!"
>> >> End If
>> >> Else
>> >> End If
>> >>
>> >> MsgBox aiprs6, , "AI"
>> >>
>> >>
>> >> -----------------------------
>> >>
>> >> The problem ACCESS msg is "needing object" ( I transfer from Chinese
>> >> to
>> >> English, thus not sure the exact English is )
>> >>
>> >
>> >
>>
>>
>
> | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Active Discussions | | | | | | | | | Panjabi Today 04:40 AM 16 Replies, 306 Views | | | | | | | | | | | | | Kirtan Yesterday 21:24 PM 0 Replies, 36 Views | | | | | | | » Books You Should Read... | | | |