Re: problem with database
Quote:
if you want more infomration write it
yes need more info, any code u tried and what is the problem?
Re: problem with database
Take a look at the MAX Function in SQL. eg
Code:
SELECT MAX(columnname) AS maxnumber FROM table
Re: problem with database
Code:
Private Sub Command1_Click()
ConnectDB
rs.Open "guestinfo", db, 3, 3
rs.AddNew
rs(1) = txtFullName
rs(2) = txtAddres
rs(3) = txtPhoneNo
rs(4) = cboGender
rs(5) = txtAge
rs.Update
Set rs = Nothing
db.Close: Set db = Nothing
MsgBox "Successfully added new record!", vbInformation, "Save"
txtFullName = Empty
txtAddres = Empty
txtPhoneNo = Empty
cboGender = Empty
txtAge = Empty
LoadData 'to refresh records
End Sub
for this piece of code how and where i have to write it?
Re: problem with database