Linty Fresh
Registered User.
- Local time
- Yesterday, 19:11
- Joined
- Mar 13, 2003
- Messages
- 20
Hi all
I'm new to using VBA modules in Access, and I've got a question about using them with queries.
Basically, is it possible to use a VBA module to deal with data already entered. What I'm trying to do is take a street address with both numbers and letters (Example: 111A) and separate out the numeral, which I want in its own field. I've written a module (Public Function StreetNum(s As String) As Integer) which I think will perform what I need, and I'm trying to get the query to recognize it. I'm following a website which seems to indicate that it's possible, but I'm having problems.
I've set aside a field in the query where I want the number to go and named it Adjusted. The heading in the Field name is Adjusted: StreetNum([Street_Number]). I'm getting an error message Undefined function 'StreetNum' in expression.
Many thanks.
I'm new to using VBA modules in Access, and I've got a question about using them with queries.
Basically, is it possible to use a VBA module to deal with data already entered. What I'm trying to do is take a street address with both numbers and letters (Example: 111A) and separate out the numeral, which I want in its own field. I've written a module (Public Function StreetNum(s As String) As Integer) which I think will perform what I need, and I'm trying to get the query to recognize it. I'm following a website which seems to indicate that it's possible, but I'm having problems.
I've set aside a field in the query where I want the number to go and named it Adjusted. The heading in the Field name is Adjusted: StreetNum([Street_Number]). I'm getting an error message Undefined function 'StreetNum' in expression.
Many thanks.