Hi,
damdam, it works on my program. But I had a new problem.
I’m using VB form to add a record. After saving it, I used the datacombo to search for the newly recorded data and I can print also but if you add another record it doesn’t display in the datacombo. In order to see the newly added record I should close the program and run again.
Meaning it shows the saved record and can print it after compiling/running...
User Profile
Collapse
-
I think I should create a program for the data report but I don't know what should I put on. pls help!!!Leave a comment:
-
This are the code for search button:
Private Sub cmdSearch_Click ()
If OptWell.Value = True Then
Form1.Data1.Rec ordset.FindFirs t "'" & TxtSearch.Text & "' = well"
End If
If OptJob.Value = True Then
Form1.Data1.Rec ordset.FindFirs t "'" & TxtSearch.Text & "' = job"
End If
Unload Me
Form1.Show
End Sub
...Leave a comment:
-
Printing a selected record
Hi!
How can I print the selected record? I'm using visual basic 6. After I search the record, it display in the form but when I click the print button all the records will print. What I want is to print the selected record only.
Thanks!
No activity results to display
Show More
Leave a comment: