473,406 Members | 2,345 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,406 software developers and data experts.

Q: How to update form after Listbox is updated???

I have a populater listbox and I update the contents by running a
different SQL statement via
listbx.Rowsource ="<SQL statement>"

The contents of the listbox changes but the form doesn't.
What sytax or command should I use to update the form fields?

thanks,
c_kubie

Oct 25 '07 #1
2 2959
"C_Kubie" <c_*****@yahoo.comwrote
I have a populater listbox and I update the contents
by running a different SQL statement via
listbx.Rowsource ="<SQL statement>"

The contents of the listbox changes but the
form doesn't.
That is exactly what I'd expect from the instruction you show. The
RowSource of a ListBox determines the contents of the ListBox and nothing
else.

What change, exactly, do you want in the contents of the Form? The
RecordSource of a Form determines the contents of the Form.
What sytax or command should I use to update
the form fields?
Without knowing what you have and what you expect, we couldn't be more
specific, nor tell you if your expectations are acheivable.

Larry Linson
Microsoft Access MVP
Oct 26 '07 #2
On Oct 26, 4:36 am, C_Kubie <c_ku...@yahoo.comwrote:
I have a populater listbox and I update the contents by running a
different SQL statement via
listbx.Rowsource ="<SQL statement>"

The contents of the listbox changes but the form doesn't.

What sytax or command should I use to update the form fields?

thanks,
c_kubie
try:

Me.Requery
Me.Refresh

HTH

Bubbles

Oct 29 '07 #3

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

Similar topics

1
by: Jimmy Tran | last post by:
Hi everyone, I have a form consisting of a combo box and two listboxes, they get their control source from a query. the whole form suppose to update a table. when i run the form, i pick an item...
1
by: SuffrinMick | last post by:
Hi All I have two tables: tblRecords and tblOptions. tblRecords consists of RecordID (autonumber), Record (text) and Option (text record of options chosen) fields tbloptions consists of...
1
by: Chris Capel | last post by:
Ok, so I have a ListBox. So it has these Items. These Items are of type SummaryItem class SummaryItem { public SummaryItem(String prefix) {Prefix = prefix;} public String Value; public String...
3
by: Vinay | last post by:
Hello I am trying to update a Progress bar on a form. I am able to update it via using a simple clock timer, but as soon as I perform a long operation G1 (generation of a report) in a separate...
3
by: Brian | last post by:
I have a form that has a textbox used to search records in a table. On the form I have a listbox which shows each record in the table. When you click on each row in the listbox the rest of the form...
5
by: heddy | last post by:
I have a listbox that gets populated in code by a reader result set from a stored proc on SQL Server 2005. In building this I created a set of test rows in the DB and the code runs fine and...
2
by: Wisher | last post by:
I can't update a listbox from other class with it's own thread. My code: The main class: <....> public partial class mainForm : Form { <....> private delegate void...
11
by: OllyJ | last post by:
Hi experts, I'm hoping you can help me with this.. I have recently found out how to use the INSERT INTO statement to add multiple records from a listbox to a table, I now need to UPDATE records in...
7
by: BONES7714 | last post by:
Hello, This is my first post to any sort of forum although I've used them to learn the very little Access/VBA that I know so please forgive my ignorance. I work for the National Guard as Combat...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.