Hi All,
Okay, I've got a frmOrders with a subform of sfrmDetails. A frmClient has
all the client info, plus a subform of sfrmDefaults that has the client's
normal ordering defaults (like set products they always order, just no
quantity).
The frmClient form has a button for adding or modifying orders by popping up
the frmOrders (with it's subform) and everything works well so far. I can
manually input the orders, with details, etc. However, I thought it'd be
cool to allow the user to click on one button on the order screen to ask if
they wanted the defaults, and if so, then it'd automatically add however
many "default" details were in the frmClient, sfrmDefaults form. I
accomplish this by then running an update query from the table from the
sfrmdefaults form to the table for the sfrmOrders. I've got that all done
and working. If I have, say, 4 defaults then it'll add 4 new detail records
to the details table just like I want. HOWEVER...
Since the form is already on the screen, it doesn't show the newly added
details from the update query unless I exit and go back into the same order
(say, to modify it). Clumsy. Is there a way to refresh the subform without
closing it all so that after I do the update query, the subform is filled
with those new details (however many) and the operator can then just start
adding the additional details, if any?
Where is this refresh, or requery or whatever placed so only the subform is
re-displayed?
TIA,
ron 2 1758
On Thu, 04 Jan 2007 23:07:09 GMT, "Ron" <ro************ ********@verizo n.net>
wrote:
>Hi All,
Okay, I've got a frmOrders with a subform of sfrmDetails. A frmClient has all the client info, plus a subform of sfrmDefaults that has the client's normal ordering defaults (like set products they always order, just no quantity).
The frmClient form has a button for adding or modifying orders by popping up the frmOrders (with it's subform) and everything works well so far. I can manually input the orders, with details, etc. However, I thought it'd be cool to allow the user to click on one button on the order screen to ask if they wanted the defaults, and if so, then it'd automatically add however many "default" details were in the frmClient, sfrmDefaults form. I accomplish this by then running an update query from the table from the sfrmdefaults form to the table for the sfrmOrders. I've got that all done and working. If I have, say, 4 defaults then it'll add 4 new detail records to the details table just like I want. HOWEVER...
Since the form is already on the screen, it doesn't show the newly added details from the update query unless I exit and go back into the same order (say, to modify it). Clumsy. Is there a way to refresh the subform without closing it all so that after I do the update query, the subform is filled with those new details (however many) and the operator can then just start adding the additional details, if any?
Where is this refresh, or requery or whatever placed so only the subform is re-displayed?
TIA, ron
Me.NameOfSubfor mControl.Form.R equery
Wayne Gillespie
Gosford NSW Australia
"Wayne Gillespie" <be*****@NOhotm ailSPAM.com.auw rote in message
news:9g******** *************** *********@4ax.c om...
On Thu, 04 Jan 2007 23:07:09 GMT, "Ron"
<ro************ ********@verizo n.net>
wrote:
>>Hi All,
Okay, I've got a frmOrders with a subform of sfrmDetails. A frmClient has all the client info, plus a subform of sfrmDefaults that has the client's normal ordering defaults (like set products they always order, just no quantity).
The frmClient form has a button for adding or modifying orders by popping up the frmOrders (with it's subform) and everything works well so far. I can manually input the orders, with details, etc. However, I thought it'd be cool to allow the user to click on one button on the order screen to ask if they wanted the defaults, and if so, then it'd automatically add however many "default" details were in the frmClient, sfrmDefaults form. I accomplish this by then running an update query from the table from the sfrmdefault s form to the table for the sfrmOrders. I've got that all done and working. If I have, say, 4 defaults then it'll add 4 new detail records to the details table just like I want. HOWEVER...
Since the form is already on the screen, it doesn't show the newly added details from the update query unless I exit and go back into the same order (say, to modify it). Clumsy. Is there a way to refresh the subform without closing it all so that after I do the update query, the subform is filled with those new details (however many) and the operator can then just start adding the additional details, if any?
Where is this refresh, or requery or whatever placed so only the subform is re-displayed?
TIA, ron
Me.NameOfSubfor mControl.Form.R equery
Wayne Gillespie
Gosford NSW Australia
Thanks for the quick response.
I placed this in the main form's (frmOrders) On Activate and it seems to
work. I have a bunch of other areas where I wanted to automatically add
some "default" subrecords (if there is such a thing) whenever a new record
is added in a main file, so I'll now be able to play around with those too.
Thanks bunches.
ron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: laurie |
last post by:
Hi all,
I'm trying to help out a friend who has inherited a client with a PHP
shopping cart application. Neither of us know PHP, but I've been
muddling my way through, trying to get these old scripts working on a
new server with the most recent version of PHP. I've pretty much
taken care of all the various errors that were popping up. Most only
pointed out out non-fatal undefined or assumed variables. I've been
able to cure most of...
|
by: cooldv |
last post by:
i know how to replace the sign " when SUBMITTING a form in asp by this
code:
message = Replace(usermessage, "'", "''").
My problem is DISPLAYING data in an asp FORM, from an an access
database, when the data already contains a " sign
problem is like this:
access database .... to update on the internet .... a *dataupdate.asp*
page ..... On this page, the data gets displayed in a form where i
|
by: Dave Hopper |
last post by:
Hi
I posted a question recently regarding problems I am having getting a
value from a list box to use in a query. I got a lot of help, for
which I thank you and it's nearly working! But I need a little more
help on one more point.
This is what i've got. I have code that hunts for updated
appointments in a public folder based on the order that happens to be
open (code fires on an on open event) This works fine and updates my
|
by: Laura |
last post by:
Here's the situation:
I'm trying to use an update query to copy data from one row to another.
Here is the situation:
I have 5 companies that are linked to each other. I need to show all 5
companies on a form. 3 of the companies have common employees. I have a
table that looks like this:
|
by: newbie |
last post by:
hello
How can I update more than one tables on the same form? The
relationship is one to many from a master table to 3 other related
tables. on the form, I have to setvalue for a few fields(colums) in
the related tables based on the value I enter in the field from the
master table. I kept getting "you have to save the record before you
update..." kind of message. Do you have any idea how to handle this? I
feel I have to set the master...
| |
by: casper christensen |
last post by:
Hi
I run a directory, where programs are listed based on the number of
clicks they have recieved. The program with most clicks are placed on
top and so on. Now I would like people to be apple to place a link on
there site so people can vote for their program, "ad a click". eg
someone clicks the link on some page and it counts +1 click on my page.
if some one clicks the link below it will count a click on my page.
|
by: 60325 |
last post by:
This is the page where I collect the data in drop-down boxes with
values of 1-10 and send it to a submitted page to do calculations.
Example:
Employee1 TeamScore(1-10)
Employee2 TeamScore(1-10)
Employee3 TeamScore(1-10)
Employee4 TeamScore(1-10)
Then I submit this page with all the values in TeamScore for every
employee and I want to
perform a calculation based on the values in the drop-down and a
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
by: Philth |
last post by:
Hey there, it has to be said that I am a complete novice in PHP, I know this is a common error and has probably been covered to some degree already - but my head really does hurt - so I couldn't stand trawling through anymore forums hunting for the right answer. Anyway - here goes.
The page I'm having trouble with is a simple edit row type form, which brings up the specific row content specified by the id(albumNumber) passed from the...
|
by: Chris Ahmsi |
last post by:
I have been tasked to create a 'simple' form in Access providing managers to input necessary changes. I have 2 command buttons on the form and a check box. Command button 1 updates my table for multiple entries, and command button 2 e-mails the table in HTML format to my team, appends the data entered to a back-up table, and deletes the entries on the current table.
When the check box on my form is checked (indicating a permanent change) I...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |