0

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
Else
.MoveLast
txtNrSerial.Text = Val(!ID) + 1
.Close
End If
End With
2
Contributors
2
Replies
5
Views
5 Years
Discussion Span
Last Post by Lipe Shtogu
1

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 ;)

0

Thank you i solved it

txtPerdoruesi.Text = frmMain.StatusBar1.Panels(3)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.