Hello to everyone
i have a problem with my project.
in one form i have 2 textboxes
in one i have displayed the serial number.
in the second i want display the current user logged on software.
how can i display the current user logged in ?????
the code for the serial number is :

et ac = New ADODB.Connection
Set ar = New ADODB.Recordset
Call DB
ac.Open strConek
With ar
criteria = "Select *From tblFurnizimet"
.Open criteria, strConek, adOpenStatic, adLockOptimistic
If ar.RecordCount = 0 Then
txtNrSerial = 1
txtNrSerial.Text = Val(!ID) + 1
End If
End With

Recommended Answers

All 2 Replies

If you are trying to read it from a database, I am sure it would be similar to reading the serial. If you are having them sign in on Form1 and you want it to be displayed on Form2, you could do something simple like this by adding it on Form2_Load event:

TextBox1.Text = Form1.txtUsername.Text

If you need more help, please don't hesitate to ask I am promise I will not hesitate to try and help ;)

Thank you i solved it

txtPerdoruesi.Text = frmMain.StatusBar1.Panels(3)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.