473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Having A Query open a Form

KM
Is there a way to have a query open the corresponding form rather than
in datasheet view? I am creating a database that will run off of a
switchboard as the users do not know anything about access and I want
to make this as easy as possible for them.

Any help would be greatly appreciated.

KLM
Nov 12 '05 #1
4 1651
"KM" <vz******@verizon.net> wrote in message
news:54**************************@posting.google.c om...
Is there a way to have a query open the corresponding form rather than
in datasheet view? I am creating a database that will run off of a
switchboard as the users do not know anything about access and I want
to make this as easy as possible for them.


Forms can open queries. Queries cannot open forms (or anything else) as they
have no code events.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2
On 7 Feb 2004 14:47:43 -0800, KM wrote:
Is there a way to have a query open the corresponding form rather than
in datasheet view? I am creating a database that will run off of a
switchboard as the users do not know anything about access and I want
to make this as easy as possible for them.

Any help would be greatly appreciated.

KLM


You're trying to work it backwards.
Make a form using the query as it's recordset.
Open the form to see the results of gthe query.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 12 '05 #3
I'm not sure what you're try to do but you could (air code)
create a function
public function openForm(strForm) as integer
openform = 1
docmd.openform(...,strform,..)
end function
select *,openForm("frmXYZ") as formToOpen FROM tblabc...
vz******@verizon.net (KM) wrote in message news:<54**************************@posting.google. com>...
Is there a way to have a query open the corresponding form rather than
in datasheet view? I am creating a database that will run off of a
switchboard as the users do not know anything about access and I want
to make this as easy as possible for them.

Any help would be greatly appreciated.

KLM

Nov 12 '05 #4
Rick Brandt wrote:
Forms can open queries. Queries cannot open forms (or anything else) as they
have no code events.


Mwa, you challenge me: if you have a function called from the query
(that is perfectly legitimate) that function could open any form.

Never mind that. (Practical use, anyone?)
--
Bas Cost Budde
http://www.heuveltop.org/BasCB
but the domain is nl

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
5
by: Ryan Hubbard | last post by:
Is it possible to get the recordset from an open query window? So you run the query. The window is open. Can vba retrieve this data?
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
18
by: Wim | last post by:
Hi, I would like to make and put a query in my database by VB.NET code. Is this possible? Thanks for your help, wim
3
by: doncee | last post by:
Not an expert but have a paramater query that would like to open as a list box on an existing form. I have a button which opens the query from the form right now but would like to have it open as...
1
by: starke1120 | last post by:
Is there a way to open a form based on query type.. Example.. If a certain query result is 1 then open the form to this result.. If the query results are NULL or 0 results, then open open for...
1
by: mbatestblrock | last post by:
I think I have a rather advanced question that I was hoping to find some good help with. I am still pretty new to VBA and I know that doesn't help my situation here. But here is what I am trying to...
7
by: DeZZar | last post by:
Hi all, Unfortunately I am quite a novice with Access!! I've created a number of data bases for my work however becuase my skills are limited to really built in functionality and wizards my...
9
ajhayes
by: ajhayes | last post by:
Hello everyone, This is my first time posting here and I'm hoping someone can help me out. I'm a relative newbie to Access and am pretty much learning as I go along, so please bear with me. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.