Hi all
Can any one check if this code correct please?
Thank you
Private Sub CmdAdd_Click()
Dim db As DAO.Database
Dim rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset("table1", dbOpenDynaset)
If IsNull(ComboName) Then
'MsgBox "Please Select comboname", vbOKOnly + 64...
How I can search by text box or by combo box or by both of them at the same time?
Can any one attach a little example please?
Many thanks in advance
vbnt
Follow up
1- Just try to delete all records in the maindata table.
Then open newcase form , you will see this error. The command or action recordsgotonew’ isn’t available now.
2. when I fill all text boxes and go to subform to fill I go error . Index or primary key cannot contain a Null value...
Follow up
It is a great idea, but not working well,
Just try it with out any record in the maindata table.
Anyhow, thanks a lot for your efforts
Regards,
vbnt
Follow up
You are right boblarson.
But I created this code to generate number like auto number to make track my work the way I need.
Using auto number makes a lot of problem , specially when I open the form to add new case, when I changed my mind and I close the form and reopen it again will...
Hi all
Can any one correct my attached program to make it works with one command button only please?
Using two buttons make conflict.
Any help will be highly appreciated.
Thank you
vbnt
Hi CraigDolphin
This is the right answer I am looking for , it is really great. That makes me so happy.
Thank you so much, I really do appreciated.
Have a nice weekend
vbnt
Follow up my Q ?
Urgently, I need help and support to make that code works , anyone can help please ?
I am sure it is not difficult for expert people
Many thanks in advance
Vbnt
Thanks a lot for reply ColinEssex
I did , but the problem still exist , code does not work right, you may need to down load the file and see.
Honestly, I need that help at ASAP, if you do not mind please?
Attached program needs little code correction; but, I do not know how, Any help will be highly appreciated
The code attached works fine with fields Dentist , patient number and name, but when I try to apply the same code at fields productID and Quantity does not work because these fields...