Hi,
A question regarding Access 2002:
I've got a form which should be displayed in Form View and in Datasheet
View. But I want to use a different record source for each view. That
means, when the view is switched I want to switch the record source
also.
I tried to put this functionality on the "On View Change" event, but
this did not work - the record source stayed unchanged. I tried it in
the "On Current" event, but this leads the form to endlessly requery.
But where else could I put the functionality of changing the record
source? Is it even possibel to change the record source in correlation
with changing the view?
Thanks,
Stephan 4 2929
steph wrote: Hi,
A question regarding Access 2002:
I've got a form which should be displayed in Form View and in Datasheet View. But I want to use a different record source for each view. That means, when the view is switched I want to switch the record source also.
I tried to put this functionality on the "On View Change" event, but this did not work - the record source stayed unchanged. I tried it in the "On Current" event, but this leads the form to endlessly requery. But where else could I put the functionality of changing the record source? Is it even possibel to change the record source in correlation with changing the view?
Thanks, Stephan
Two views - one RecordSource (makes sense)
One view - two RecordSources (makes sense)
Two views - two RecordSources (?????????)
Why don't you just use two forms?
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
As it is the same underlying table, only 2 different queries filtering
the data, I thought it fits to do it this way. But you're right, I can
also solve this with 2 tables. Less elegant, maybe.
br,
stephan
steph wrote: As it is the same underlying table, only 2 different queries filtering the data, I thought it fits to do it this way. But you're right, I can also solve this with 2 tables. Less elegant, maybe.
br, stephan
I never suggested two tables. If by "two diffferent queries" you actually mean
the same query structure just with different selection criteria then all you
should need to do is change the form's filter, no?
Otherwise changing the RecordSource and then the view from the code of a command
button should work.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Oh, I'm sorry, in my last post I meant to say "2 forms" instead of "2
tables"!
The 2 queries I have not only differ in their filter criteria, but also
in the columns they return. I could do the changing of record-source
with a command button, yes. But my initial idea was, that there might
be an event that's triggered when view is switched between form and
datasheet. apparently there is not?
In the meantime I have solved this with 2 forms, as you proposed.
Thanks,
stephan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Matish |
last post by:
I would like to know if the following is possible:
I have a form and a subform. In the subform, there are records
summarized. (For ex, instead of showing all 19 fields, I only show 3 to
save space.)
I would like the user to be able to select a record in the subform
datasheet, and click a button, or double click, to bring up the ENTIRE
record. (I would have a separate form created for this).
|
by: edself |
last post by:
I have a form which displays a subform datasheet of information. I'd like
to be able to quickly click on a particular record and open up another form
showing more detailed information about that record from a related table.
Is there a way to do this? It would be nice to be able to right click on a
cell in a datasheet and then select menu choice to open a form with related
information, but it seems like to right click menues in Access...
|
by: Wadim Grasza |
last post by:
I want to store and display (on a form or a report) multiple pictures
per
record in an access database. The pictures are not stored within the
database. They are stored as files and the database contains the paths
to the
pictures.
The database consists of two tables:
TABLE DATA
ID Name LastName
|
by: S. van Beek |
last post by:
Dear reader,
I try to switch between to columns in a form showing as datasheet view.
The idée is to show one of the two columns in a datasheet.
The problem is that the property visible yes and visible now dos not work in
the data sheet view.
|
by: Bill |
last post by:
This database has no forms. I am viewing an Access table in datasheet
view. I'd like to execute a macro to execute a function (using
"runcode"). In the function, I'll reading data from the record the
cursor was on in the datasheet at the time I executed the macro.
So, the questions are: 1) In the macro, how to I get my hands on the
record key or record data of the record the cursor was on in the
datasheet at the time I executed the...
| |
by: Nicolas Boretos |
last post by:
Hello,
Beginning access user here.
I am displaying the table and its existing form at the same time.
I would like to double-click on a row in the table and have the form go
to/display the selected record.
tia,
nikos
|
by: Orv |
last post by:
I have a search form which contains a non-linked subform. When I fill the
criteria of my search and click the search button it returns the results in
the subform, datasheet view.
I then want to select/click on the row (record) on the datasheet and have
that record pop-up.
Any ideas?
TIA,
|
by: lupusdark |
last post by:
Hi,
I have a form which opens another form. when a record is changed on the first form information changes on the second form.
The first forms view is on 'single form' but i want the second forms view as Datasheet.
I've set the second forms 'Default view' to 'Datasheet' and disabled all other views. but it will only go to datasheet view if if click the 'Datasheet' option in the Menu Bar or like method.
So I created a button with the...
|
by: Gord |
last post by:
If I have a form open with a subform control on it in datasheet view that
has its record source set to a query or a table, is it possible to determine
which record the user has clicked into with VB? I don't mean the text box
with which you can determine the field/column, but the record (row). I
guess what I'm looking for would be the bookmark? (or some line numbering?)
or whatever information would aid in determining unambiguously which...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |