PC Review


Reply
Thread Tools Rate Thread

Default Value of field if not isNull

 
 
JK
Guest
Posts: n/a
 
      23rd Mar 2009
I have a workorder form in access 03; on this form I have three tabs - one is
for parts, one is for labor and the last one is for vendor parts/labor. If we
do not do the work ourselves we outsource the work to one of our vendors.
These vendors are all over the country so I need to deal with the sales tax
rate for each vendor.

My default sales tax text box is pointed to the My Company Info table.
However, I want the form to basically say, if VendorTaxRate is not null then
change the SalesTaxRate to be whatever the VendorTaxRate is.

I've tried this is the forms after update event but I've been getting all
kinds of strange errors and once it even crashed my form.

What is the correct way to do this?

Thx so much for your help!
 
Reply With Quote
 
 
 
 
Jeanette Cunningham
Guest
Posts: n/a
 
      23rd Mar 2009
Hi JK,
try putting this air code on the Current event for the form.

If Not IsNull(Me!VendorTaxRate) Then
Me!SalesTaxRate = Me!VendorTaxRate)
End If

Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia


"JK" <jasonk at necoffeeco dot com> wrote in message
news:3D293867-2F31-456F-87D2-(E-Mail Removed)...
>I have a workorder form in access 03; on this form I have three tabs - one
>is
> for parts, one is for labor and the last one is for vendor parts/labor. If
> we
> do not do the work ourselves we outsource the work to one of our vendors.
> These vendors are all over the country so I need to deal with the sales
> tax
> rate for each vendor.
>
> My default sales tax text box is pointed to the My Company Info table.
> However, I want the form to basically say, if VendorTaxRate is not null
> then
> change the SalesTaxRate to be whatever the VendorTaxRate is.
>
> I've tried this is the forms after update event but I've been getting all
> kinds of strange errors and once it even crashed my form.
>
> What is the correct way to do this?
>
> Thx so much for your help!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow Edits if Field isNull =?Utf-8?B?cmljaGFyZA==?= Microsoft Access Forms 3 23rd Jul 2007 03:14 PM
Testing a field for isnull TeeSee Microsoft Access Form Coding 3 15th Jul 2007 09:07 PM
IsNull[Field] Problem =?Utf-8?B?SXJhbQ==?= Microsoft Access VBA Modules 3 26th Apr 2006 07:53 PM
Date field if IsNull dbl Microsoft Access Form Coding 1 10th Apr 2006 08:26 PM
form field if IsNull then =?Utf-8?B?TGlu?= Microsoft Access Forms 3 21st Mar 2005 08:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.