Hi I am trying to execute a sql to fetch a value which will be source to a text box. Could you help me on how to write and execute sql's in vba?? tnx in advance.
I tried below but it is giving 3163: the field is too small to accept the value..........
Dim SS As String
DoCmd.SS = "SELECT qryAgreement_Data.[Unique ID] FROM qryAgreement_Data WHERE qryAgreement_Data.[Unique ID]=311;"
Me.Agreement_ID.Value = SS
thank you.
I tried below but it is giving 3163: the field is too small to accept the value..........
Dim SS As String
DoCmd.SS = "SELECT qryAgreement_Data.[Unique ID] FROM qryAgreement_Data WHERE qryAgreement_Data.[Unique ID]=311;"
Me.Agreement_ID.Value = SS
thank you.