I have a table in SQL which looks like this
RequestedChangeID ProjectID RequestedChangeNumber
140 10012 1
141 10012 2
142 10012 3
143 10012 4
144 10012 5
in
vb I can crate a select query to display the data in a recordset like this
SELECT PROJECTREQUESTEDCHANGE.RequestedChangeID, [ProjectID] & "-RC" & Format([RequestedChangeNumber],"000") AS ChangeNumber, PROJECTREQUESTEDCHANGE.MediaDate AS [Date]
FROM PROJECTREQUESTEDCHANGE;
which gives me
RequestedChangeID ChangeNumber Date
140 10012-RC001 30/09/2008
141 10012-RC002 30/09/2008
142 10012-RC003 30/09/2008
143 10012-RC004 30/09/2008
144 10012-RC005 30/09/2008
but the format funtion doesn't work in SQl, so I am not sure how to do it, can anyone help please