[RESOLVED] How To Update Data Display By Textbox/Label
I've create form that can read data from com port. I'm using this code :
Code:
Private Sub MSComm1_OnComm()
Dim strInput As String
Dim intI As Integer
With MSComm1
'test for incoming event
Select Case .CommEvent
Case comEvReceive
'display incoming event data to displaying textbox
strInput = .Input
Text1.Text = Text1.Text & strInput
End Select
End With
Rite now I'm trying to do something else using the same code. What I'm trying to do is when the data output from COM port is updated n I want to show it back in the same textbox. I mean replace the data with the new one. Can someone point me to something or mayb edit the code above.
Private Sub MSComm1_OnComm()
Dim strInput As String
Dim intI As Integer
With MSComm1
'test for incoming event
Select Case .CommEvent
Case comEvReceive
Text1.Text = "" ' Clear TextBox
strInput = .Input
Text1.Text = Text1.Text & strInput
End Select
End With
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing??
Now for the second part...if its ok with u.
This code is form Form1. In this form i've 3 command button. Approve...Deny...View Details. I want to parse the data from the Form1 to Form3(View Details). The View Details command button will open new form(Form3) that show details on data received. This form is connected to database and will show the details according the input receive from previous Form1. All this happen when i click View Details button on Form1.
Is it could happen? If it can happen...what code should i write n how?
I'm trying do develop system that can read data from COM port. This com port i've attached to rfid reader. I've 1 form to detect this data from the com port. So its working great. Now...in this from i've 1 text box(the input come from com port)....3 command button (Approve...Deny...View Details).
Its workflows is like this...fisrt the text box box catch data(in string). Then i click button View Details and it will parse the input from the text box to next form(View Details form). In the View Details form it take the input from previous form and execute searching in database. Then it will show relevant data according to the input i get before in this form.
I hope u could understand what i'm trying to explain here. If not...i'll try to explain more.
PS: Tell me which u 1 u don't understand. Sorry for my poor English.
Members will need sample of text to parse and schema of relevant database tables in order to assist. We don't have crystal balls, so the answer you'll get is as good as the explanation you give. The best answer you'll get so far is either "yes, that's possible", or reference to related links on parsing and queries which you'll have to modify to suit your needs.