Click here to Skip to main content
15,897,518 members

Comments by Bhavesh Vankar (Top 23 by date)

Bhavesh Vankar 9-Dec-21 6:01am View    
right sir but in my side when i select checkbox i got the comma backside. and vb6.0 is too old but our project is build in vb6.0 and this is small update in this project so that why i have to solve this.
Bhavesh Vankar 27-Sep-21 3:05am View    
but i have tried all the things from google and other platforms but still not resolved both queries...
Bhavesh Vankar 12-Apr-21 5:55am View    
sir can you explain me with example i am new and having no much idea about vb6.0 how to use CStr(). and how to program it to display age...
Bhavesh Vankar 12-Apr-21 5:28am View    
this is solved but still pending how to display age in textbox by sql query which is computed. means i have used this code
If rs.state = adStateOpen Then rs.Close
rs.Open "Select DATEDIFF(YEAR,CONVERT(datetime,'" & txtBirthdate.Text & "',103),CONVERT(datetime,V_ISSUEDATE,103)) from VISITOR_MASTER_NEW", cn.Conn, adOpenDynamic, adLockOptimistic


in this below line i want to display my computed age how to do this.

txtAge.Text = rs("V_AGE") & ""
Bhavesh Vankar 12-Apr-21 5:10am View    
in V_ISSUEDATE column stored only date. but main question is using above query i find age successfully but how to display that output age in textbox like txtage.text see my above code after query i have used this line to display age in textbox txtAge.Text = rs("V_AGE") & "" is this right....it generate error "method 'Item' of object 'Fields' failed" and i have replaced datetime instead of varchar in sql query..