🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #106

Re: Help needed on updating texboxes

#106
From: dfwcomp
Date: Wed, 05 Nov 1997 17:48
49 lines
2249 bytes
I tried this code out in VB5 Enterprise, and it worked. See if this code
will help you get on the right track:

'=====================
Private Sub Combo1_KeyPress(KeyAscii As Integer)

    On Error Resume Next
    
    If KeyAscii = 13 Then
       
       For i = 0 To 10
          If Combo1.Text = Combo1.List(i) Then
             Text1.Text = Combo1.List(i)
             Text1.SetFocus
             
          End If
       Next i
       
    End If

End Sub

'============================

Hope This Helps You Out.

Andy Duckworth <dux@globalnet.co.uk> wrote in article
<01bce79d$c3d18060$87577ec2@duckfather>...
> Urgent help please!
> 
> I have a user form in an Access 97 document that has a combo box looking
up
> info from a table. Connected to this I have various textboxes showing
> related info from the database. When I change the value in the combo, the
> values in the text boxes change as expected. What I want is to be able to
> type something into the combo box and have the values in the text boxes
> change dynamically. Can any body help in this. I will be needing to do
this
> in a VB5 app in the near future as well as in Access.
> 
> Thanks in anticipation.
> 
> email at either duckfather@dux.globalnet.co.uk      or
> andy_duckworth@allied-colloids.co.uk
> 
> Cheers
> 
> Andy
> 
Technical Details
Message-ID: <01bcea12$bbe83700$02828282@win95-c>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.nask.pl!01-newsfeed.univie.ac.at!newscore.univie.ac.at!newsfeed.ecrc.net!nntp.flash.net!excalibur.flash.net!not-for-mail
References: <01bce79d$c3d18060$87577ec2@duckfather>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.nask.pl!01-newsfeed.univie.ac.at!newscore.univie.ac.at!newsfeed.ecrc.net!nntp.flash.net!excalibur.flash.net!not-for-mail
From: "dfwcomp" <dfwcomp@swbell.net>
Newsgroups: microsoft.public.msdn.general,microsoft.public.officedev,microsoft.public.vb.database,microsoft.public.vb.enterprise,microsoft.public.vb.syntax,microsoft.public.word.programming,pl.comp.lang.vbasic
Subject: Re: Help needed on updating texboxes
Date: 5 Nov 1997 17:48:20 GMT
Organization: Flashnet Communications, http://www.flash.net
Lines: 49
Message-ID: <01bcea12$bbe83700$02828282@win95-c>
References: <01bce79d$c3d18060$87577ec2@duckfather>
NNTP-Posting-Host: ppp-151-164-42-183.eulstx.swbell.net
X-Newsreader: Microsoft Internet News 4.70.1161
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit