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

Input form



 
 
Thread Tools Display Modes
  #1  
Old March 26th, 2010, 01:38 PM posted to microsoft.public.access.forms
AccessKay
external usenet poster
 
Posts: 106
Default Input form

Hi,
How complicated is it to create a form so the user can input things like
date range, dept, group, etc. and then have another form to pop up with the
data based on the inputs? What do I need to know to make this happen? I’ll
probably need to read more about forms and subforms but what is the general
process?
Thanks!

  #2  
Old March 26th, 2010, 02:08 PM posted to microsoft.public.access.forms
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Input form

On Fri, 26 Mar 2010 06:38:01 -0700, AccessKay
wrote:

You can certainly build a form to do this, but it is already built-in.
Check "Query by Form" menu option. You would run it on your main form
and it allows you to put in a complex filter over several fields.

If you have to write your own form: you could create a new form with
some textboxes and dropdowns as you indicated. Then have a button
"Open Main Form". In that button_click event concatenate a string
variable that will be the where-clause for the form. Something like:
strWhere = "myDateField between #" & Me.txtStartDate & "# and #" &
Me.txtEndDate & "#"
etc.
Then on the next line you open the form using DoCmd.OpenForm, and you
use this string in the WhereCondition argument.

-Tom.
Microsoft Access MVP


Hi,
How complicated is it to create a form so the user can input things like
date range, dept, group, etc. and then have another form to pop up with the
data based on the inputs? What do I need to know to make this happen? I’ll
probably need to read more about forms and subforms but what is the general
process?
Thanks!

  #3  
Old March 26th, 2010, 03:07 PM posted to microsoft.public.access.forms
AccessKay
external usenet poster
 
Posts: 106
Default Input form

Fun! That’s really cool that Access has a built-in capability for this. I’m
going to play around with this and also try to learn how to write my own
form. I’d like to learn both ways. Thanks so much for giving me some good
direction.

"Tom van Stiphout" wrote:

On Fri, 26 Mar 2010 06:38:01 -0700, AccessKay
wrote:

You can certainly build a form to do this, but it is already built-in.
Check "Query by Form" menu option. You would run it on your main form
and it allows you to put in a complex filter over several fields.

If you have to write your own form: you could create a new form with
some textboxes and dropdowns as you indicated. Then have a button
"Open Main Form". In that button_click event concatenate a string
variable that will be the where-clause for the form. Something like:
strWhere = "myDateField between #" & Me.txtStartDate & "# and #" &
Me.txtEndDate & "#"
etc.
Then on the next line you open the form using DoCmd.OpenForm, and you
use this string in the WhereCondition argument.

-Tom.
Microsoft Access MVP


Hi,
How complicated is it to create a form so the user can input things like
date range, dept, group, etc. and then have another form to pop up with the
data based on the inputs? What do I need to know to make this happen? I’ll
probably need to read more about forms and subforms but what is the general
process?
Thanks!

.

 




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


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.