Sorry, it has not solved. The problem is that it is generating the field but for same reason does like to read the first letter of the Firstname (i.e Name=Cyrus,Andrew) it is geerating (i.e field=C264)
Thanks,
Sorry, has solved. The problem is that it is generating the field but for same reason does like to read the first letter of the Firstname (i.e Name=Cyrus,Andrew) it is geerating (i.e field=C264)
Thanks,
Hi Guys
I have got the following function, that Generates value to a field by getting the first letter of Firstname, Surname + 3 numbers.
I am having an error "Subscript out of range" on the following lineline
"ip = k(Asc(Mid$(nam, 1, 1)))"
Function Soundex(na As String) As String
Dim m1...
The error I am getting is: Compile Error, Do without loop.
I am trying to assign value to a field= First letter of Firstname + first letter of Surname + numbers whatever they are according the codes given. Does it make sense?
i.e FIELD=WH616.
Thanks
I have the following code I need help because it does not work.
Private Sub Command0_Click()
Dim NUMCHECK As Integer
Dim SURN As String
Dim CD As String
Dim CURCH As String
Dim PREVNO As String
Dim ADNUM As String
Dim PREVCH As String
Dim LONGA As Integer
Dim C1 As String
Dim C2 As String...
I am trying to export an Excel file to delimited text file. The code below works fine for one range. I would like to include others ranges. How can I do that.
CODE:
For example I want to export also B44:F44, B48:F48, H56 ...etc
Sub CallExport()
'ExportRange(range,where,delimiter)
Call...
I have NEXT i.
Private Sub Command147_Click()
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("Survey")
For i = 0 To rst.RecordCount - 1
' place code here
If IsNull(SpecimenDate) = False Then
Ageyrs = (SpecimenDate - Dob) / 365.5...
There you go
Private Sub Command147_Click()
Dim db As Database
Dim rst As Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("Survey")
For i = 0 To rst.RecordCount - 1
' place code here
If IsNull(SpecimenDate) = False Then
Ageyrs = (SpecimenDate - Dob) / 365.5...
Thank you it's working but I have to go though each record and click the button. It does not do for all the records in the table. Do you know what I mean?
I am using the code below to update the fields in a table. It works fine if I do one record at a time. What I want is to update all records when I click the button, I have tried so many things and none of them worked. What I am doing wrong?
Dim db As Database
Dim rst As Recordset...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.