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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If then statement?



 
 
Thread Tools Display Modes
  #1  
Old July 31st, 2006, 03:57 PM posted to microsoft.public.access.tablesdbdesign
Natalie
external usenet poster
 
Posts: 212
Default If then statement?

Hi,
I am setting up a new database and am unfamiliar with the technique needed
to do the following:
If a user inputs data into certain fields, then I want other fields to
display (on a form) based on the first selections. For instance, if they are
entering expenses for "hotel", then obviously things like conf rooms and
banquet lunch are only pertinent to "hotel" and not "car rental". How can I
set it up to make this happen?
  #2  
Old July 31st, 2006, 05:01 PM posted to microsoft.public.access.tablesdbdesign
Tim Ferguson
external usenet poster
 
Posts: 142
Default If then statement?

=?Utf-8?B?bmF0YWxpZQ==?= wrote in
:

How can I
set it up to make this happen?



This is a forms design question, not a tables db design one (although I
suspect a tables design problem lies behind it). Anyway, to answer your
question, you should look at Help and the examples for the AfterUpdate and
BeforeUpdate events. Information on Enabled and Visible properties of
controls on forms would probably be appropriate too.

Hope that helps.


Tim F

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error in INSERT INTO Statement Hemil Running & Setting Up Queries 2 April 5th, 2005 09:55 PM
SQL Statement created from ItemsSelected from Several Listboxes.. Denis Bisson Using Forms 2 February 21st, 2005 02:48 AM
Executing 'Transform' SQL in VBA Leo General Discussion 20 October 28th, 2004 10:42 AM
Calculated Mean Charles Deng Running & Setting Up Queries 21 October 15th, 2004 08:37 PM
If statement Doug Worksheet Functions 4 June 25th, 2004 01:42 PM


All times are GMT +1. The time now is 06:37 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.