access query

steven low

Registered User.
Local time
Today, 04:55
Joined
Dec 2, 2006
Messages
27
Hi guys im trying to create a access database which has two colums like the example shown below.



Code:
Registry          total registry 



///                     3



basically the first colume would contain these symbols /// and i want the second colume to read off the first colume soo if I have /// the total registry colum would show the total number of ///.



how woud i get the tables within access to do this:confused:
 
you would just store Registry in the table and use the len function on a query to calculate total registry on the fly.
TotRegistry = Len(registry)

HTH

Peter
 
I tried what you said

you would just store Registry in the table and use the len function on a query to calculate total registry on the fly.
TotRegistry = Len(registry)

For this I went in the Querys option and created query in design view I put

TotRegistry = Len(registry) in the Criteria section got nothing is this right what i am doing? :confused:
 
No luck:(

Tried what you said in critera it keeps saying error in syntax

could you please send an example please
 
oops my bad :-(
should have been TotRegistry: Len([registry])

here is a sample

HtH

Peter
 

Attachments

Hi Bat17

thanks for that.

My other problem is. Say If i wat to just let the colume count // and not these xxx what validation would i use e.g.


Registry total registry



///xx 3
 
Last edited:
probably a better way, but this should work
TotRegistry: Abs(Len(replace([registry],"/",""))-Len([registry]))

Peter
 

Users who are viewing this thread

Back
Top Bottom