PC Review


Reply
Thread Tools Rate Thread

Blank form woes

 
 
dindigul
Guest
Posts: n/a
 
      2nd Nov 2007
I wanted to create a calculated field on a blank form. However when I used
the expression builder, obviously it created the expression
=[table1]![expenses]*.15, but it did not work. Later I inserted a field from
the table, then typed [expenses]*.15 in a text box and it worked. My
question is when there is no reference on which table the form is based,
what's wrong in the above expression where table reference appears? Moreover
after I run the form, and again go back to design view, i see the argument
changed to =Table1!expenses*0.15. could anyone explain? Thanks


 
Reply With Quote
 
 
 
 
Ken Snell \(MVP\)
Guest
Posts: n/a
 
      2nd Nov 2007
In order for you to use a field in a calculated expression on a form, that
field must be included in the query that is being used as the form's
RecordSource.

I speculate that the field Table1.Expenses did not exist in the RecordSource
in your first try; but did in your second try.

Also, although the Expression Builder uses the ! operator between a table
name and a field name, the proper operator to use is a . (dot or period).
--

Ken Snell
<MS ACCESS MVP>




"dindigul" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I wanted to create a calculated field on a blank form. However when I used
>the expression builder, obviously it created the expression
>=[table1]![expenses]*.15, but it did not work. Later I inserted a field
>from the table, then typed [expenses]*.15 in a text box and it worked. My
>question is when there is no reference on which table the form is based,
>what's wrong in the above expression where table reference appears?
>Moreover after I run the form, and again go back to design view, i see the
>argument changed to =Table1!expenses*0.15. could anyone explain? Thanks
>



 
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
In a fill-in-the-blank form, how can I make a blank space close up Becky Microsoft Word Document Management 1 27th Mar 2008 08:46 AM
creating a new form woes =?Utf-8?B?RnJlZWhhbDA0?= Microsoft Access Getting Started 2 15th Mar 2007 07:04 PM
Form - Submitting file (upload) woes DianaH Microsoft Frontpage 5 19th May 2006 05:44 AM
Filter by form woes (posted inadvertantly first in the queries sub =?Utf-8?B?Ympub3Zh?= Microsoft Access Form Coding 1 23rd Oct 2004 01:06 AM
Filter by form woes =?Utf-8?B?Ympub3Zh?= Microsoft Access Queries 1 22nd Oct 2004 04:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:19 AM.