I want to use a connection to an existing MS Access database, but I want
to be able to change which table is used to fill the datalist, using
VB6, at run time by late binding the datalist to the table. Using
either an ADO connection or an ADODC control, I can fill the datalist OK
the first time, but when I try to clear it and fill it from another
table, the contents of the datalist do not change. I must be doing
something really dumb here, but I can't figure it out. Any help would
be appreciated.
TIA,
Martin
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! 2 2636
There are some people here who use (or used to use) VB, in addition to
Access, but it's primarily devoted to the Access product, not to all users
of Jet databases. This question would definitely have a better chance of
getting a good answer if asked in a Visual Basic newsgroup... USENET
newsgroups comp.lang.basic .visual.misc and comp.lang.basic .visual.databas e
are two; there are other sponsored newsgroups at news.microsoft. com (a free
news server).
I'm even having some difficulty remembering what a "datalist" is -- do you
mean a List Box Control?
Larry Linson
Microsoft Access MVP
"Martin Wulfe" <su************ **@yahoo.com> wrote in message
news:3f******** *************@n ews.frii.net... I want to use a connection to an existing MS Access database, but I want to be able to change which table is used to fill the datalist, using VB6, at run time by late binding the datalist to the table. Using either an ADO connection or an ADODC control, I can fill the datalist OK the first time, but when I try to clear it and fill it from another table, the contents of the datalist do not change. I must be doing something really dumb here, but I can't figure it out. Any help would be appreciated.
TIA,
Martin
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
Larry -
Thanks for the quick response. No, the datalist is a separate control,
in MSDATLST.OCX. I will try the other groups.
Martin
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rob Koch |
last post by:
What's the best way to refresh a usercontrol using a parameter? My
usercontrol is just a DataList that retrieves data from SQL in association
with a public propterty.
I click on a LinkButton in my main page (ASPX), but it still refreshes the
entire page... I only want the UserControl to blink and come back with new
data.
What's the direction I should be looking at? Even if I do it via
JavaScript, how would I refresh the UserControl...
|
by: John |
last post by:
Hi -
I've got a couple of pages where a DataList is populated only if(!Postback).
I have buttons in the datagrid that allow for the 'deletion' of items from
that DataList.
The problem is that the deleted items don't disappear on Postback, but only
after a page refresh. I assume this is because the DataList is not
redatabound unless !Postback. However, if I remove the if(!Postback)
statement, the button's 'delete' method doesn't seem...
|
by: Bharat |
last post by:
Hi Folks,
Suppose I have two link button on a page (say lnkBtn1 and
lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically
created control. And On the click event of the lnkBtn2 I have to add a
datalist control.
Using this datalist control I should be able to add edit, modify
and cancel the items listed in this control.
Here is how I designed. I used placeholder to add the controls dynamically
to the page on the click...
|
by: Glenn Owens |
last post by:
Here's the scenario:
I have a DataList populated from a datatable sitting inside a
fieldset. Each element (row) in the Datalist has the following child
controls: asp:checkbox, asp:image, asp:labels.
Within the <form>, but outside the fieldset, containing the datatlist,
I have a usercontrol (used to collect search criteria) and some
asp:button controls (used to initiate actions - ie. retrieve db data,
reset user control fields,...
|
by: yer darn tootin |
last post by:
Ahoy,
I have an aspx web page that loads an ascx control that's populated
with various items ( in a datalist ). Select an item and the page
reloads and the datalist now shows the details.
>From here I want to put a print option in, a button that will either
immediately print the contents of the datalist or maybe pop-up
something with just the currently viewed datalist contents in it (
leaving the user to print from the browser ).
| |
by: bryanp10 |
last post by:
I have a DataList on my page which contains multiple DropDownLists. My
page defaults to showing six rows in the DataList. I want the ability
to dynamically add rows if needed. Right now I'm just using an empty
table with X rows, and adding a new row to the table that the DataList
is bound to. However, I can't figure out a way to do this and at the
same time maintain the current viewstate of the existing controls.
When I
call...
|
by: schapopa |
last post by:
Hi,
I have nested datalist and I have some events that work, but I cannot
find out how to refresh child and parent datalist after executing events
on the child datalist.
My childdatalist is an user control.
Thank you for your help
Schapopa
|
by: David |
last post by:
Hi,
This one appears a little strange to me. Here is the scenario.
I load a datalist the first time a page is run. The page has a !IsPostback
and the datalist gets loaded at this point.
I have a button on the page, where I want to read the contents of the
datalist. As an example that I have found on MS...
|
by: Peter |
last post by:
ASP.NET 3.5
I have a web page and this web page has a DataList, when user hovers the
mouse over a picture in the datalist a popup appers, this popup is a User
Control and it has a cancel button. After the user clicks on the cancel
button I want the DataList to refresh its self. How can I do that - how can
I tell the DataList or the parent web page to refresh it's self from the
Popup / User Control?
|
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: 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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: 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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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.
| |