Microsoft Office Access 2003 - Manuale (Italiano)[1]

32
1/32 © 2003 2003 Manuale Access Università degli Studi Roma Tre I N F O R M A T I C A

Transcript of Microsoft Office Access 2003 - Manuale (Italiano)[1]

Page 1: Microsoft Office Access 2003 - Manuale (Italiano)[1]

1/32

©© 20032003

ManualeAccess

Università degli Studi Roma Tre

I N F O R M A T I C A

Page 2: Microsoft Office Access 2003 - Manuale (Italiano)[1]

2/32

©© 20032003

1 0 . 1 . 2 Q u e r y

1 0 . 1 . 3 M a s c h e r a

1 0 . 1 . 4 R e p o r t

1 0 . 1 . 5 M a c r o

1 0 . 1 . 6 M o d u l o

I r e p o r t c o n s e n t o n o d i s t a m p a r e o v i s u a l i z z a r e i n a n t e p r i m a d a t i s e c o n d o u n f o r m a t o s p e c i f i c o . E s e m p i d i r e p o r t i n c l u d o n o e t i c h e t t e p o s t a l i , e l e n c h i , b u s t e , l e t t e r e t i p o e f a tt u r e . I r e p o r t p o s s o n o p r e s e n t a r e a n c h e i r i s u l t a t i d e l l e q u e r y i n u n f o r m a t o f a c i l m e n t e c o m p r e n s i b i l e .

U n a m a c r o è u n i n s i e m e d i i s t r u z i o n i c h e r e n d e a u t o m a t i c o u n c o m p i t o c h e s i d e v e e s e g u i r e s p e s s o . Q u a n d o s i a v v i a u n a m a c r o , A c c e s s e s e g u e l e a z i o n i c o n t e n u t e n e l l a m a c r o se c o n d o l’ o r d i n e n e l q u a l e l e a z i o n i s o n o e l e n c a t e . L e m a c r o c o n s e n t o n o d i a s s e m b l a r e u n a r a c c o l t a d i t a b e l l e , q u e r y , m a s c h e r e e p r o s p e t t i i n a p p l i c a z i o n i c o m p l e t e c h e c h i u n q u e p u ò u t i l i z z a r e , a n c h e c h i h a u n a c o n o s c e n z a l i m i t a t a d i A c c e s s .

C o m e l e m a c r o , i m o d u l i c o n s e n t o n o d i a u t o m a t i z z a r e p e r s o n a l i z z ar e A c c e s s . I m o d u l i , c o m u n q u e , d i v e r s a m e n t e d a l l e m a c r o , f o r n i s c o n o u n c o n t r o l l o p iù p r e c i s o s u l l e a z i o n i d a e s e g u i r e e r i c h i e d o n o u n ’ e s p e r i e n z a d i p r o g r a m m a z i o n e i n V i s u a l B a s i c .

U n a q u e r y è u n o s t r u m e n t o c h e c o n s e n t e d i i n t e r r o g a r s i s u i d a t i c o n t e n u t i ne l l e t a b e l l e e d i e s e g u i r e a z i o n i s p e c i f i c h e s u i d a t i . S i p o s s o n o u t i l i z z a r e l e q u e r y p e r c o m b i n a r e o u n i r e d a t i d a v a r i e t a b e l l e s e p a r a t e m a c o r r e l a t e . L e q u e r y p o s s o n o i n o l t r e c o n ­ s e n t i r e d i m o d i f i c a r e , e l i m i n a r e o a g g i u n g e r e c o n s i s t e n t i q u a n t it à d i d a t i i n u n s o l o p a s s o . I n f i n e , s i p o s s o n o u t i l i z z a r e l e q u e r y c o m e b a s e p e r m a s c h e r e e p r o s p e t t i .

L e m a s c h e r e c o n s e n t o n o d i v i s u a l i z z a r e e i m m e t t e r e d a t i s e c o n d o u n f o r m a t o c o n v e n i e n t e s i m i l e a q u e l l o d e i m o d u l i d i c o m p i l a z i o n e s u c a r t a . L e m a s c h e r e p o s s o n o a n c h e i n c l u d e r e a l o r o v o l t a a l t r e m a s c h e r e ( d e n o m i n a t e s o t t o m a s c h e r e ) c h e c o n s e n t o n o d i i m m e t t e r e d a t i i n v a r i e t a b e l l e c o n t e m p o r a n e a m e n t e .

P e r a v v i a r e M i c r o s o f t A c c e s s 2 0 0 0 , c l i c c a r e s u l p u l s a n t e A v v i o n e l l a b a r r a d e l l e a p p l i c a z i o n i d i W i n d o w s e s c e g l i e r e q u i n d i P r o g r a m m i e M i c r o s o f t A c c e s s . D o p o q u a l c h e i s t a n t e , c o m p a r e l a f i n e s t r a d i d i a l o g o d i a v v i o d i M i c r o s o f t A c c e s s . E s e g u i r e u n a d e l l e s e g u e n t i o p e r a z i o n i :

S e c o m p a r e u n e l e n c o d i n o m i d i d a t a b a s e , c l i c c a r e s u l n o m e d i da t a b a s e u t i l i z z a t o r e c e n t e m e n t e n e l l a l i s t a o p p u r e f a r e c l i c s u A l t r i f i l e p e r c e r c a r e i l d a t a b a s e c h e s i v u o l e u t i l i z z a r e . C l i c c a r e s u O K . P e r t o r n a r e a l l a f i n e s t r a p r i n c i p a l e d i M i c r o s o f t A c c e s s s e n z a c r e a r e o a p r i r e u n d a t a b a s e , c l i c c a r e s u l p u l s a n t e A n n u l l a o p r e m e r e i l t a s t o E s c .

1 0 . 2 A v v i o d i A c c e s s 2 0 0 0

1 0 . 2 . 1 A p e r t u r a d i u n d a t a b a s e e s i s t e n t e

P e r a p r i r e u n d a t a b a s e , n e l l a f i n e s t r a d i d i a l o g o d i a v v i o , s c e gl i e r e A p r i d a t a b a s e ( o p z i o n e p r e d e f i n i t a ) . Q u i n d i , s e i l n o m e d e l d a t a b a s e c h e s i v u o l e a p r i r e è c o n t e n u t o n e l l ’ e l e n c o , f a r e d o p p i o c l i c s u l n o m e . S e i n v e c e i l n o m e d e l d a t a b a s e n o n è p r e s e n t e n e l l ’ e l e n c o , f a r e d o p p i o c l i c s u A l t r i f i l e e i n d i v i d u a r e i l d a t a b a s e u t i l i z z a n d o l e t e c n i c h e s t a n d a r d d i R i s o r s e d e l c o m p u t e r . Q u a n d o s i è t r o v a t o i l d a t a b a s e c h e s i v u o l e u t i l i z z a r e , f a r e d o p p i o c l i c s u l s u o n o m e o i c o n a . N e l l a f i n e s t r a p r i n c i p a l e d i M i c r o s o f t A c c e s s , s e l e z i o n a r e F i l e | A p r i d a t a b a s e o p p u r e f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i A p r i d a t a b a s e .

M i c r o s o f t A c c e s s 2 0 0 0 p e r W i n d o w s 9 8 è u n s i s t e m a d i g e s t i o n e d i d a t a b a s e , o D B M S ( D a t a B a s eM a n a g e m e n t S y s t e m ) . C o m e i l n o m e s t e s s o i n d i c a , u n D B M S c o n s e n t e d i g e s t i r e d a t i m e m o r i z z a t i i n u n d a t a b a s e s u c o m p u t e r . U n a d e f i n i z i o n e a m p i a m e n t e a c c e t t a t a d i d at a b a s e è «u n a r a c c o l t a d i d a t i c o r r e l a t i a u n p a r t i c o l a r e a r g o m e n t o o s c o p o» . S e q u e s t o p u ò s e m b r a r e a b b a s t a n z a g e n e r i c o , s i p e n s i a u n d a t a b a s e c o m e a u n c o n ­ t e n i t o r e d i u s o g e n e r a l e p e r l a m e m o r i z z a z i o n e e l a g e s t i o n e d i i n f o r m a z i o n i . U n d a t a b a s e p u ò c o n t e n e r e a n c h e o g g e t t i c h e c o n s e n t o n o d i g e s t i r e i d a t i , c o m e m a s c h e r e ( pe r l ’ i m m i s s i o n e e l a m o d i f i c a d e i d a t i ) e r e p o r t( p e r l a s t a m p a d e i d a t i i n u n o s p e c i f i c o f o r m a t o ) . U n d a t a b a s e pu ò c o n t e n e r e u n a c o m b i n a z i o n e q u a l s i a s i d e i s e i t i p i d i o g g e t t i d e s c r i t t i b r e v e m e n t e n e i p u n t i c h e s e g u o n o .

1 0 . 1 . 1 T a b e l l a

L e t a b e l l e s o n o s t r u t t u r e f o n d a m e n t a l i i n u n d a t a b a s e d i A c c e s s p e r c h é m e m o r i z z a n o i d a t i c h e s i d e v o n o g e s t i r e . A l l ’ i n t e r n o d i u n a t a b e l l a , i d a t i s o n o o r g a n i z z a t i i n c a m p i ( c o l o n n e ) e r e c o r d ( r i g h e ) .

1 0 . 1 I n t r o d u z i o n e

• P e r c r e a r e u n n u o v o d a t a b a s e v u o t o , s c e g l i e r e N u o v o d a t a b a s e e f a r e q u i n d i c l i c s u O K .• P e r u t i l i z z a r e l ’ A u t o c o m p o s i z i o n e D a t a b a s e p e r c r e a r e u n n u o v o d a t a b a s e , s c e g l i e r e A u t o c o m p o s i z i o n eD a t a b a s e e f a r e q u i n d i c l i c s u O K p e r a p r i r e l a f i n e s t r a d i d i a l o g o N u o v o .• P e r a p r i r e u n d a t a b a s e e s i s t e n t e , s c e g l i e r e A p r i d a t a b a s e .

Page 3: Microsoft Office Access 2003 - Manuale (Italiano)[1]

3/32

©© 20032003

1 0 . 2 . 3 C h i u s u r a d i u n o g g e t t o

1 0 . 2 . 4 G e s t i o n e d e g l i o g g e t t i d e l d a t a b a s e

L a f i n e s t r a d i d a t a b a s e c o n s e n t e d i f a r e m o l t o d i p iù c h e a p r i r e s e m p l i c e m e n t e g l i o g g e t t i . È p o s s i b i l e u t i l i z z a r e q u e s t a f i n e s t r a p e r g e s t i r e g l i o g g e t t i d i u n d a t a b a s e , c i o è c o p i a r l i , e l i m i n a r l i , r i n o m i n a r l i e c o s ì v i a . E c c o c o m e :l - S e l ’ o g g e t t o c o n i l q u a l e s i v u o l e l a v o r a r e è c o r r e n t e m e n t e a p e r t o , c h i u d e r l o .2 - S c e g l i e r e i l t i p o d i o g g e t t o c o n i l q u a l e s i v u o l e l a v o r a r e ( f a c e n d o c l i c s u l l e s c h e d e T a b e l l e , Q u e r y , M a s c h e r e , R e p o r t , M a c r o o M o d u l i n e l l a f i n e s t r a d e l d a t a b a s e ) .3 - F a r e c l i c s u l n o m e d i u n o g g e t t o e q u i n d i :

I n d i p e n d e n t e m e n t e d a l m o d o n e l q u a l e è s t a t o a p e r t o u n o g g e t t o , s i p o s s o n o u t i l i z z a r e l e t e c n i c h e s t a n d a r d d i W i n d o w s p e r c h i u d e r l o . E c c o t r e m e t o d i , s e m p r e d i s p o n i b i l i :

S e l ’ o g g e t t o c h e s i s t a v i s u a l i z z a n d o è s t a t o m o d i f i c a t o c o m p a r e u n a r i c h i e s t a d i s a l v a t a g g i o d e l l e m o d i f i c h e . R i s p o n d e r e a l l a r i c h i e s t a n e l m o d o a p p r o p r i a t o .

1 0 . 2 . 2 L a v o r a r e n e l l a f i n e s t r a d e l d a t a b a s e

2 - C l i c c a r e s u u n n o m e n e l l a l i s t a d i o g g e t t i s e s i v u o l e u t i l i z z ar e o m o d i f i c a r e u n o g g e t t o e s i s t e n t e .3 - E s e g u i r e u n a d e l l e s e g u e n t i o p e r a z i o n i :

L a f i n e s t r a d e l d a t a b a s e è u n o d e g l i s t r u m e n t i p r i n c i p a l i p e r l ’ u s o d i A c c e s s . D u r a n t e l a c r e a z i o n e d i p r o p r i d a t a b a s e , s i r i c o r r e a q u e s t o s e m p l i c e p r o c e d i m e n t o a t r e p a s s i p e r l a v o r a r e c o n g l i o g g e t t i n e l p r o p r i o d a t a b a s e : 1 - S c e g l i e r e i l t i p o d i o g g e t t o c h e s i v u o l e c r e a r e , u t i l i z z a r e o m o d i f i c a r e . C l i c c a r e s u T a b e l l e , Q u e r y , M a s c h e r e , P r o s p e t t i , M a c r o o M o d u l i .

• P e r c r e a r e u n o g g e t t o d e l t i p o s e l e z i o n a t o n e l p a s s o 1 , f a r e c l i c s u l p u l s a n t e N u o v o s u l l a t o d e s t r o d e l l a f i n e s t r a .• P e r u t i l i z z a r e ( o v i s u a l i z z a r e o e s e g u i r e ) l’ o g g e t t o , f a r e c l i c s u l p u l s a n t e A p r i ( o A n t e p r i m a o E s e g u i ) .• P e r m o d i f i c a r e l’ a s p e t t o o l a s t r u t t u r a d e l l ’ o g g e t t o , f a r e c l i c s u l p u l s a n t e S t r u t t u r a .

• P e r e l i m i n a r l o , s c e g l i e r e M o d i f i c a | E l i m i n a o p r e m e r e C a n c ; c l i c c a r e s u S I a l l a r i c h i e s t a d i c o n f e r m a .• P e r r i n o m i n a r e l’ o g g e t t o , f a r e c l i c d i n u o v o s u l n o m e d e l l ’ o g g e t t o ( o s c e g l i e r e M o d i f i c a | R i n o m i n a) , d i g i t a r e u n n u o v o n o m e e p r e m e r e q u i n d i I n v i o .• P e r c o p i a r e l’ o g g e t t o n e l l o s t e s s o d a t a b a s e , s c e g l i e r e M o d i f i c a | C o p i a o p r e m e r e C t r l + C . Q u i n d i s c e g l i e r e M o d i f i c a | I n c o l l a o p r e m e r e C t r l + V . I m m e t t e r e u n n o m e d i o g g e t t o v a l i d o , s c e g l i e r e a l t r e o p z i o n i n e l m o d o a p p r o p r i a t o e q u i n d i f a r e c l i c s u O K .• P e r c r e a r e u n c o l l e g a m e n t o n e l d e s k t o p d i W i n d o w s r e l a t i v o a l l ’ o g g e t t o s e l e z i o n a t o , s c e g l i e r e M o d i f i c a | C r e a c o l l e g a m e n t o , s p e c i f i c a r e l a p o s i z i o n e e q u i n d i f a r e c l i c s u O K . S u c c e s s i v a m e n t e , è p o s s i b i l e f a r e d o p p i o c l i c s u l c o l l e g a m e n t o n e l d e s k t o p d i W i n d o w s p e r a v v i a r e A c c e s s e a p r i r e l ’ o g g e t t o i n u n s o l o p a s s o .• P e r s t a m p a r e l ’ o g g e t t o , s c e g l i e r e F i l e | S t a m p a o p r e m e r e C t r l + P o c l i c c a r e s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i S t a m p a . Q u i n d i c l i c c a r e s u O K n e l l a f i n e s t r a S t a m p a p e r s t a m p a r e l ’ o g g e t t o c o m p l e t o .• P e r v i s u a l i z z a r e i n a n t e p r i m a l’ o g g e t t o p r i m a d e l l a s t a m p a , s c e g l i e r e F i l e | A n t e p r i m a d i s t a m p a o p p u r e f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i A n t e p r i m a d i s t a m p a .• P e r e s p o r t a r e l ’ o g g e t t o i n u n a l t r o p r o g r a m m a W i n d o w s o i n u n a l t r o d a t a b a s e M i c r o s o f t A c c e s s , s c e g l i e r e F i l e | S a l v a c o n n o m e/ E s p o r t a . C o m p l e t a r e l a f i n e s t r a d i d i a l o g o e f a r e c l i c s u O K .• P e r e s p o r t a r e l ’ o g g e t t o i n H T M L o u n a l t r o f o r m a t o W e b , s c e g l i e r e F i l e | S a l v a n e i f o r m a t i H T M L/ W e b .• P e r i m p o r t a r e o c o l l e g a r e d a t i d a u n a l t r o p r o g r a m m a o d a t a b a s e , s c e g l i e r e F i l e | C a r i c a d a t i e s t e r n i e s c e g l i e r e q u i n d i I m p o r t a o T a b e l l e c o l l e g a t e . C o m p l e t a r e l a f i n e s t r a c h e c o m p a r e e c l i c c a r e s u l p u l s a n t e I m p o r t a o C o l l e g a .

1 0 . 2 . 5 U s o d e l l a b a r r a d e g l i s t r u m e n t i e d e l l a b a r r a d e l m e n u

L e b a r r e d e g l i s t r u m e n t i o f f r o n o s c o r c i a t o i e p r a t i c h e a i c o m a n d i p iù c o m u n i . P e r u t i l i z z a r l e , s p o s t a r e i l m o u s e s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i c h e s i v u o l e s c e g l i e r e , o s s e r v a r e n e l l a b a r r a d i s t a t o l a d e s c r i z i o n e d e i p u l s a n t e c o r r e n t e , e s e g u i r e u n a d e l l e s e g u e n t i o p e r a z i o n i , i n r el a z i o n e a l t i p o d i p u l s a n t e c h e s i s t a p u n t a n d o . P e r u n p u l s a n t e s e m p l i c e , f a r e c l i c s u l p u l s a n t e . P e r u n p u l s a n t e a d i s c e s a , f a r e c l i c s u l l ’ i m m a g i n e d e l p u l s a n t e p e r a t t i v a r e l ’ a z i o n e r i p r o d o t t a d a l l ’ i m m a g i n e o p p u r e f a r e c l i c s u l l a f r e c c i a v e r s o i l b a s s o a f i a n c o d e l l ’ i m m a g i n e e s c e g l i e r e q u i n d i u n ’ o p z i o n e n e l m e n u o t a v o l o z z a c h e c o m p a r e . P e r u n a c a s e l l a c o m b i n a t a , f a r e c l i c s u l l a f r e c c i a a d i s c e s a a f i a n c o d e l l a c a s e l l a e s c e g l i e r e q u i n d i u n ’ o p z i o n e n e l l ’e l e n c o c h e c o m p a r e o p p u r e f a r e c l i c s u l l a f r e c c i a v e r s o i l b a s s o e d i g i t a r e q u i n d i l a p r o p r i a s c e l t a n e l l a c a s e l l a d i t e s t o .

• F a r e c l i c s u l p u l s a n t e C h i u d i ( X ) n e l l ’ a n g o l o s u p e r i o r e d e s t r o d e l l a f i n e s t r a c h e s i v u o l e c h i u d e r e ( n on s u l p u l s a n t e C h i u d i d e l l a f i n e s t r a d e l p r o g r a m m a M i c r o s o f t A c c e s s ) .• S c e g l i e r e F i l e | C h i u d i n e l l a b a r r a d e l m e n u d i A c c e s s .

Page 4: Microsoft Office Access 2003 - Manuale (Italiano)[1]

4/32

©© 20032003

1 0 . 2 . 6 V i s u a l i z z a z i o n e d i b a r r e d e g l i s t r u m e n t i , d e s c r i z i o n i c o ma n d i e b a r r a d i s t a t o

L e b a r r e d e g l i s t r u m e n t i , l e d e s c r i z i o n i c o m a n d i , l a b a r r a d i s t a t o e a l t r e c a r a t t e r i s t i c h e s u l l o s c h e r m o s o n o o p z i o n a l i e p e r s o n a l i z z a b i l i . S e n o n s i v u o l e v i s u a l i z z a r e u n a di q u e s t e c a r a t t e r i s t i c h e i n A c c e s s , è p o s s i b i l e n a s c o n d e r l a ( o d i s a t t i v a r l a ) . P e r v i s u a l i z z a r e ( o n a s c o n d e r e ) l a b a r r a d i s t a t o o l a f i n e s t r a d i d i a l o g o d i A v v i o :1 - A p r i r e u n a f i n e s t r a d i d a t a b a s e ( i c o m a n d i S t r u m e n t i | O p z i o n i e S t r u m e n t i | A v v i o d e s c r i t t i n e l s e g u i t o s o n o d i s p o n i b i l i s o l o q u a n d o è a p e r t o u n d a t a b a s e ) .2 - S c e g l i e r e S t r u m e n t i | O p z i o n i n e l l a b a r r a d e l m e n u d i A c c e s s e f a r e q u i n d i c l i c s u l l a s c h e d a V i s u a l i z z a .3 - S e l e z i o n a r e ( a t t i v a r e ) u n ’ o p z i o n e p e r v i s u a l i z z a r e l a c a r a t t e r i s t i c a ; d e s e l e z i o n a r e ( c a n c e l l a r e ) l ’ o p z i o n e p e r n a s c o n d e r e ( o d i s a t t i v a r e ) l a c a r a t t e r i s t i c a .P e r v i s u a l i z z a r e o n a s c o n d e r e l e d e s c r i z i o n i c o m a n d i ( c h e c o m p a i o n o q u a n d o s i s p o s t a i l p u n t a t o r e s u u n p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i ) , s c e g l i e r e V i s u a l i z z a | B a r r e d e g l i s t r u m e n t i | P e r s o n a l i z z a n e l l a b a r r a d e i m e n u e c l i c c a r e s u l p a n n e l l o O p z i o n i , q u i n d i a t t i v a r e M o s t r a d e s c r i z i o n e c o m a n d i e c l i c c a r e s u C h i u d i .

1 0 . 2 . 7 C h i u s u r a d i u n d a t a b a s e

• F a r e c l i c s u l p u l s a n t e C h i u d i n e l l ’ a n g o l o s u p e r i o r e d e s t r o d e l l a f i n e s t r a d e l d a t a b a s e .• A t t i v a r e l a f i n e s t r a d e l d a t a b a s e e s c e g l i e r e q u i n d i F i l e | C h i u d i n e l l a b a r r a d e i m e n u d i A c c e s s .

U n ’ a p p l i c a z i o n e è u n s i s t e m a b a s a t o s u c o m p u t e r c h e c o n s e n t e l ’ e s e c u z i o n e d i a t t i v i t à c o m e g e s t i o n e d i o r d i n i , s c a d e n z e , i n v e n t a r i o d i p r o d o t t i e a l t r i t i p i d i i n f o r m a z i o n i . U n ’ a p p l i c a z i o n e c o m p l e t a C o n s e n t e l ’ i m m i s s i o n e e l ’u s o d i i n f o r m a z i o n i s e n z a d o v e r s i p r e o c c u p a r e d e i m e c c a n i s m i o r g a n i z z a t i v i . A c c e s s s e g u e l a t e r m i n o l o g i a p iù f o r m a l e , n e l l a q u a l e i l t e r m i n e d a t a b a s e i n d i c a t u t t i i d a t i e g l i o g g e t t i u t i l i z z a t i p e r l a g e s t i o n e d e i d a t i . C o n A c c e s s , t u t t e l e t a b e l l e e g l i o g g e t t i ( m a s c h e r e , r e p o r t , q u e r y, m o d u l i e m a c r o ) c h e c o s t i t u i s c o n o u n a s i n g o l a a p p l i c a z i o n e v e n g o n o p o s t i i n u n u n i c o d a t a b a s e . I n q u e s t o m o d o g l i o g g e t t i c o r r e l a t i v e n g o n o m e m o r i z z a t i n e l l o s t e s s o d a t a b a s e . I l p r i m o p a s s o p e r l a c r e a z i o n e d i q u a l s i a s i a p p l i c a z i o n e c o n s i s t e n e l l ’ i m p o s t a r e i l f i l e d i d a t a b a s e . S p e s s o i l m o d o m i g l i o r e c o n s i s t e n e l l ’ i n i z i a r e c o n u n d a t a b a s e v u o t o , s e s i p e n s a d i i m p o r t a r e i d a t i d a f i l e e s t e r n i o p p u r e s i p r e f e r i s c e c r e a r e d a z e r o i p r o p r i o g g e t t i d i d a t a b a s e .

1 0 . 3 . 1 C r e a r e u n d a t a b a s e v u o t o

N e l m e n u p r i n c i p a l e d i M i c r o s o f t A c c e s s , s c e g l i e r e i l c o m a n d o F i l e | N u o v o d a t a b a s e o p r e m e r e C t r l + N o f a r e c l i c s u l p u l s a n t e N u o v o d a t a b a s e d e l l a b a r r a d e g l i s t r u m e n t i . C o m p a r e l a f i n e s t r a d i d i a l o g o N u o v o . F a r e c l i c s u l l a s c h e d a G e n e r a l e d e l l a f i n e s t r a d i d i a l o g oN u o v o e p o i f a r e d o p p i o c l i c s u l l ’ i c o n a D a t a b a s e v u o t o . S i a p r e l a f i n e s t r a d i d i a l o g o S a l v a n u o v o d a t a b a s e . I m m e t t e r e i l n o m e d i f i l e d e l n u o v o d a t a b a s e ( o a c c e t t a r e i l n o m e s u g g e r i t o ) n e l l a c a s e l l a d i t e s t o N o m e f i l e . S a l v a r e i l d a t a b a s e . N o r m a l m e n t e , A c c e s s s u g g e r i s c e d i s a l v a r e i l d a t a b a s e i n u n a c a r t e l l a d e n o m i n a t a D o c u m e n t i p r e s e n t e s u l d i s c o r i g i d o . P e r s a l v a r e i l d a t a b a s e i n u n ’u n i t à d i v e r s a o i n u n a c a r t e l l a d i v e r s a , s c e g l i e r e l’u n i t à e l a c a r t e l l a n e l l ’ e l e n c o a d i s c e s a S a l v a i n . F a r e c l i c s u l p u l s a n t e C r e a .

1 0 . 3 . 2 C r e a r e u n d a t a b a s e c o n l ’ A u t o c o m p o s i z i o n e d a t a b a s e

P e r c r e a r e u n ’ a p p l i c a z i o n e c o m p l e t a i n A c c e s s s i p u ò r i c o r r e r e a l l ’ a u t o c o m p o s i z i o n e D a t a b a s e :1 - P r o c e d e r e i n u n o d e i m o d i s e g u e n t i :

1 0 . 2 . 8 U s c i r e d a M i c r o s o f t A c c e s s 2 0 0 0

Q u a n d o s i è f i n i t o d i u t i l i z z a r e A c c e s s , s i d e v e r i t o r n a r e a W i n d o w s p r i m a d i s p e g n e r e i l c o m p u t e r . È p o s s i b i l e u s c i r e d a M i c r o s o f t A c c e s s u t i l i z z a n d o l e t e c n i c h e c o m u n i a g l i a l t r i p r o g r a m m i W i n d o w s :1 - P a s s a r e a l l a f i n e s t r a d e l d a t a b a s e o a l l a f i n e s t r a p r i n c i p a l e di M i c r o s o f t A c c e s s .2 - S c e g l i e r e F i l e | E s c i o f a r e c l i c s u l p u l s a n t e C h i u d i n e l l ’ a n g o l o s u p e r i o r e d e s t r o d e l l a f i n e s t r a d i M i c r o s o f t A c c e s s o p r e m e r e A l t + F 4

1 0 . 3 C r e a r e u n d a t a b a s e e u n ’ applicazione

Q u a n d o s i è f i n i t o d i l a v o r a r e c o n u n d a t a b a s e , l o s i d e v e c h i u d e r e . p o s s i b i l e r i c o r r e r e a u n o d i q u e s t i m e t o d i :

• N e l l a f i n e s t r a d i d i a l o g o d i a v v i o d i A c c e s s , s c e g l i e r e A u t o c o m p o s i z i o n e D a t a b a s e e f a r e c l i c s u O K .• N e l l a f i n e s t r a p r i n c i p a l e d i M i c r o s o f t A c c e s s , s c e g l i e r e F i l e | N u o v o d a t a b a s e n e l l a b a r r a d e i m e n u

2 - F a r e c l i c s u l l a s c h e d a D a t a b a s e n e l l a f i n e s t r a d i d i a l o g o N u o v o , q u i n d i p o r t a r s i s u l l ’ i c o n a r e l a t i v a a l t i p o d i i n f o r m a z i o n i c h e s i i n t e n d o n o g e s t i r e e f a r e d o p p i o c l i c s u d i es s a : s i a p r i r à l a f i n e s t r a d i d i a l o g o S a l v a n u o v o

d a t a b a s e .

Page 5: Microsoft Office Access 2003 - Manuale (Italiano)[1]

5/32

©© 20032003

3 - I m m e t t e r e u n n o m e d i d a t a b a s e n e l l a c a s e l l a d i t e s t o N o m e f i l e . S e n e c e s s a r i o , s c e g l i e r e u n ’ u n i t à d i s c o e u n a c a r t e l l a n e l l ’ e l e n c o a d i s c e s a S a l v a i n . I n f i n e , f a r e c l i c s u l p u l s a n t e C r e a . C o m p a r e u n a f i n e s t r a d i d a t a b a s e v u o t o , s e g u i t a d a l l a p r i m a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e .4 - L e g g e r e l a d e s c r i z i o n e d e l n u o v o d a t a b a s e n e l l a p r i m a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e e q u i n d i c l i c c a r e s u l p u l s a n t e A v a n t i p e r a p r i r e l a s e c o n d a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e .5 - U t i l i z z a r e l e i n d i c a z i o n i c h e s e g u o n o p e r l a s c e l t a d e i c a m p i d a i n c l u d e r e i n c i a s c u n a t a b e l l a e p e r s e g n a l a r e a l l ’ a u t o c o m p o s i z i o n e d i i n c l u d e r e e v e n t u a l m e n t e d a t i d i e s e m p i o . T e r m i n a t e l e s c e l t e , f a r e c l i c s u A v a n t i p e r c o n t i n u a r e c o n l a t e r z a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e.

6 - S c e g l i e r e u n c o l o r e d i s f o n d o e l o s t i l e g e n e r a l e d e l l e m a s c h e re d e i d a t a b a s e n e l l a t e r z a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e . I l l a t o s i n i s t r o d e l l a f i n e s t r a d i d i a l o g o v i s u a l i z z a u n a m a s c h e r a d i e s e m p i o c h e r i f l e t t e l e s c e l t e c o r r e n t i . P e r c o n t i n u a r e , f a r e c l i c s u l pu l s a n t e A v a n t i .7 - N e l l a q u a r t a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e , s c e g l i e r e u n o s t i l e p e r i r e p o r t s t a m p a t i . A n c h e i n q u e s t o c a s o , l ’ a r e a d i e s e m p i o r i f l e t t e l e s c e l t e o p e r a t e d a l l ’u t e n t e . P e r c o n t i n u a r e , c l i c c a r e s u A v a n t i .8 - N e l l a q u i n t a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e , s p e c i f i c a r e u n t i t o l o p e r i l d a t a b a s e e s c e g l i e r e u n ’ i m m a g i n e d a u t i l i z z a r e n e i r e p o r t . E f f e t t u a t e l e s c e l t e , f a r e c l i c s u A v a n t i p e r p a s s a r e a l l ’ u l t i m a f i n e s t r a d i d i a l o g o .9 - N e l l ’ u l t i m a f i n e s t r a d i d i a l o g o , s c e g l i e r e s e s i d e s i d e r a a v v i a r e i l d a t a b a s e s u b i t o d o p o l a s u a c r e a z i o n e d a p a r t e d e l l ’ A u t o c o m p o s i z i o n e. S e s i a t t i v a l a c a s e l l a d i c o n t r o l l o A p r i i l d a t a b a s e , s i v i e n e p o r t a t i n e l P a n n e l l o c o m a n d i p r i n c i p a l e , c h e c o n s e n t e d i i n i z i a r e i m m e d i a t a m e n t e a l a v o r a r e c o n i l d a t a b a s e : s e s i d i s a t t i v a q u e s t a o p z i o n e , s i p a s s a d i r e t t a m e n t e n e l l a f i n e s t r a d e l d a t a b a s e , a g g ir a n d o i l P a n n e l l o c o m a n d i .1 0 - F a r e c l i c s u l p u l s a n t e F i n e p e r a v v i a r e l a c r e a z i o n e d e l d a t a b a s e e d e l l a s u a m a s c h e r a d i ge s t i o n e d e l l ’ a p p l i c a z i o n e , d e n o m i n a t a P a n n e l l o c o m a n d i .A t t e n d e r e p a z i e n t e m e n t e p e r a l c u n i i s t a n t i m e n t r e l’ u n i t à d i s c o l a v o r a e l ’ A u t o c o m p o s i z i o n e D a t a b a s e c r e a t u t t o u n d a t a b a s e c o m p l e t o d i t a b e l l e , m a s c h e r e , r e p o r t e a l t r i o g g e t t i . Q u a n d o l ’ A u t o c o m p o s i z i o n e D a t a b a s e t e r m i n a i l s u o l a v o r o , v i e n e v i s u a l i z z a t a l a m a s c h e r a P a n n e l l o c o m a n d i p r i n c i p a l e r e l a t i v a a l d a t a b a s e o p p u r e l a f i n e s t r a d e l d a t a b a s e , s e c o n d o l a s c e l t a e f f e t t u a t a n e l p a s s o 9 .

1 0 . 4 C r e a r e t a b e l l e d i A c c e s s

P e r c r e a r e r a p i d a m e n t e u n a t a b e l l a , a p r i r e i l d a t a b a s e e s e g u i r e q u e s t i p a s s i p e r l ’ u s o d e l l ’ A u t o c o m p o s i z i o n e :1 - F a r e , c l i c s u l l a s c h e d a T a b e l l e d e l l a f i n e s t r a d e l d a t a b a s e e q u i n d i f a r e c l i c s u l p u l s a n t e N u o v o . O p p u r e , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e N u o v o o g g e t t o d e l l a b a r r a d e g l i s t r u m e n t i e s c e g l i e r e N u o v a t a b e l l a . O p p u r e s c e g l i e r e i l c o m a n d o I n s e r i s c i | T a b e l l a . C o m p a r e l a f i n e s t r a d i d i a l o g o N u o v a t a b e l l a .2 - F a r e d o p p i o c l i c s u l l ’ A u t o c o m p o s i z i o n e T a b e l l a p e r a p r i r e l a f i n e s t r a d i d i a l o g o A u t o c o m p o s i z i o n e T a b e l l a .3 - S c e g l i e r e i l p u l s a n t e A m b i t o p r o f e s s i o n a l e o A m b i t o p r i v a t o .4 - S c o r r e r e l’ e l e n c o d e l l e t a b e l l e e f a r e c l i c s u l n o m e d e l l a t a b e l l a d i e s e m p i o c h e d e s c r i v e m e g l i o i d a t i c h e s i v o g l i o n o m e m o r i z z a r e .5 - F a r e c l i c s u u n n o m e d i c a m p o d e l l ’ e l e n c o C a m p i d i e s e m p i o p e r c i a s c u n c a m p o c h e s i d e s i d e r a i n c l u d e r e n e l l a t a b e l l a e f a r e c l i c s u l p u l s a n t e > ( o f a r e d o p p i o c l i c s u u n n o m e d i c a m p o ) . O p p u r e , f a r e c l i c s u l p u l s a n t e > > p e r c o p i a r e n e l l a t a b e l l a t u t t i i c a m p i d i e s e m p i o . I n o m i d e i c a m p i v e r r a n n o c o p i a t i i n C a m p i i n n u o v a t a b e l l a n e l l ’ o r d i n e s p e c i f i c a t o .6 - F a r e c l i c s u l p u l s a n t e A v a n t i q u a n d o l’ e l e n c o C a m p i i n n u o v a t a b e l l a c o n t i e n e i c a m p i c h e s i v o l e v a n o i n c l u d e r e n e l l a t a b e l l a . L a f i n e s t r a d i d i a l o g o s u c c e s s i v a s u g g e r i s c e u n n o m e p e r l a n u o v a t a b e l l a .7 - L a s c i a r e i n v a r i a t o i l n o m e s u g g e r i t o o i m m e t t e r e u n n u o v o n o m e .

P e r p o t e r e s s e r e g e s t i t i c o n A c c e s s , i d a t i d e v o n o e s s e r e m e m o r i z z a t i i n t a b e l l e . S e i d a t i c o n i q u a l i s i d e s i d e r a l a v o r a r e s o n o g i à m e m o r i z z a t i i n u n d a t a b a s e c o m p u t e r i z z a t o , p r o b a b i l m e n t e s i p o t r à u s a r e A c c e s s p e r u t i l i z z a r l i . M a s e i d a t i e s i s t o n o s o l o s u c a r t a o s o n o i n u n f or m a t o c h e A c c e s s n o n è i n g r a d o d i i m p o r t a r e o d i c o l l e g a r e , p e r p r i m a c o s a s i d o v r a n n o s t r u t t u r a r e l e t a b e l l e p e r l a m e m o r i z z a z i o n e d e i d a t i .

1 0 . 4 . 1 U s o d e l l ’ A u t o c o m p o s i z i o n e D a t a b a s e p e r l a c r e a z i o n e d i t a b e l l e

• P e r s c e g l i e r e u n a t a b e l l a c o n c u i l a v o r a r e , f a r e c l i c s u l n o m e d e l l a t a b e l l a n e l l ’ e l e n c o d e l l e t a b e l l e a s i n i s t r a . Q u i n d i , n e l l ’ e l e n c o d i c a m p i r i p o r t a t o s u l l a d e s t r a , s e l e z i o n a r e ( c o n u n s e g n o d i s p u n t a ) i c a m p i c h e s i d e s i d e r a i n c l u d e r e e d e s e l e z i o n a r e ( t o g l i e r e i l s e g n o d i s p u n t a ) i c a m p i c h e s i v u o l e o m e t t e r e . I c a m p i o p z i o n a l i s o n o v i s u a l i z z a t i i n c o r s i v o . I c a m p i o b b l i g a t o r i s o n o i n i z i a l m e n t e s e l e z i o n a t i e v i s u a l i z z a t i i n c a r a t t e r e n o r m a l e ( r o m a n ) ( l a d e s e l e z i o n e d e i c a m p i o b b l i g a t o r i n o n è c o n s e n t i t a ) .• P e r i n c l u d e r e d a t i d i e s e m p i o , s e l e z i o n a r e l a c a s e l l a a c c a n t o a I n c l u d i d a t i d i e s e m p i o . P e r o m e t t e r e i d a t i d i e s e m p i o , d e s e l e z i o n a r e l a c a s e l l a .

Page 6: Microsoft Office Access 2003 - Manuale (Italiano)[1]

6/32

©© 20032003

8 - A s s e g n a r e u n a c h i a v e p r i m a r i a . E s i s t o n o d u e o p z i o n i :

9 - S e i l d a t a b a s e c o n t i e n e g i à a l m e n o u n a t a b e l l a , i l p r o g r a m m a c h i e d e d i s p e c i f i c a r e s e l a n u o v a t a b e l l a èc o r r e l a t a a l l e a l t r e t a b e l l e d e l d a t a b a s e . E c c o c h e c o s a s i p u ò f a r e :

1 0 - S e g u i r e l ’ i n v i t o f o r m u l a t o n e l l a f i n e s t r a d i d i a l o g o f i n a l e e i n d i c a r e a l l ’ a u t o c o m p o s i z i o n e c o s a d e v e f a r e d o p o l a c r e a z i o n e d e l l a t a b e l l a .C i s i t r o v e r à n e l l a f i n e s t r a d e l l a s t r u t t u r a , i n V i s u a l i z z a z i o n e F o g l i o d a t i o p p u r e i n u n a m a s c h e r a , s e c o n d o l a s c e l t a e f f e t t u a t a a l p u n t o 1 0 . P e r t o r n a r e a l l a f i n e s t r a d e l d a t a b a s e , s c e g l i e r e i l c o m a n d o F i l e | C h i u d i o p p u r e f a r e c l i c s u l p u l s a n t e C h i u d i d e l l a f i n e s t r a c h e c o m p a r e o p p u r e p r e m e r e C t r l + W . S e v i e n e v i s u a l i z z a t o u n i n v i t o a s a l v a r e l e m o d i f i c h e e f f e t t u a t e , f a r e c l i c s u S ì o N o, s e c o n d o l a n e c e s s i t à .

A c c e s s o f f r e a l l ’ u t e n t e u n a l i b e r t à c o n s i d e r e v o l e n e l l ’ a s s e g n a z i o n e d e i n o m i a t a b e l l e , c a m p i d i t a b e l l a , m a s c h e r e , r e p o r t , q u e r y, m a c r o e m o d u l i . È c o m u n q u e i n d i s p e n s a b i l e a t t e n e r s i a d a l c u n e r e g o l e :

1 0 . 4 . 2 R e g o l e p e r l ’ a s s e g n a z i o n e d e i n o m i a g l i o g g e t t i

S i p u ò p r o g e t t a r e e c r e a r e u n a t a b e l l a p a r t e n d o d a z e r o . I l p r i m o p a s s o d a c o m p i e r e c o n s i s t e n e l d e c i d e r e q u a l i c a m p i i n c l u d e r e n e l l a t a b e l l a . P e r c r e a r e u n a t a b e l l a a p a r t i r e d a z e r o , s e g u i r e q u e s t i p a s s i :1 - C l i c c a r e s u l l a s c h e d a T a b e l l e n e l l a f i n e s t r a d e l d a t a b a s e e q u i n d i f a r e c l i c s u l p u l s a n t e N u o v o . O p p u r e , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e N u o v o o g g e t t o d e l l a b a r r a d e g l i s t r u m e n t i e s c e g l i e r e N u o v a t a b e l l a . O p p u r e , s c e g l i e r e i l c o m a n d o I n s e r i s c i | T a b e l l a .2 - F a r e d o p p i o c l i c s u l p u l s a n t e V i s u a l i z z a s t r u t t u r a d e l l a f i n e s t r a d i d i a l o g o N u o v a t a b e l l a c h e c o m p a r e . S i d e v o n o q u i n d i d e f i n i r e i c a m p i d e l l a t a b e l l a .3 - I m m e t t e r e u n n o m e d i c a m p o n e l l a c o l o n n a N o m e c a m p o .4 - C l i c c a r e s u l l a c o l o n n a T i p o d a t i a c c a n t o a l n o m e d i c a m p o e q u i n d i f a r e c l i c s u l p u l s a n t e d i e l en c o a d i s c e s a c h e c o m p a r e . V i e n e v i s u a l i z z a t o u n e l e n c o , n e l q u a l e è p o s s i b i l e s c e g l i e r e i l t i p o d i d a t o a p p r o p r i a t o f a c e n d o c l i c s u l t i p o d i d a t i d e s i d e r a t o (T e s t o , M e m o , N u m e r i c o , D a t a / o r a , V a l u t a , C o n t a t o r e , S ì / N o , O g g e t t o O L E , C o l l e g a m e n t o i p e r t e s t u a l e , A u t o c o m p o s i z i o n e R i c e r c a ) .5 - C l i c c a r e s u l l a c o l o n n a D e s c r i z i o n e e d i g i t a r e u n a d e s c r i z i o n e p e r i l c a m p o . Q u e s t a d e s c r i z i o n e v e r r à i n s e g u i t o v i s u a l i z z a t a n e l l a b a r r a d i s t a t o d u r a n t e l ’ i m m i s s i o n e d e i d a t i .6 - ( O p z i o n a l e ) C l i c c a r e s u l l a s c h e d a G e n e r a l e o R i c e r c a n e l l ’ a r e a d e l l e P r o p r i e t à c a m p o e i m p o s t a r e l e p r o p r i e t à r e l a t i v e a l c a m p o i n c o r s o d i d e f i n i z i o n e .7 - R i p e t e r e i p a s s i d a 3 a 6 , m e t t e n d o l a d e f i n i z i o n e d i c i a s c u n c a m p o s u u n a r i g a s e p a r a t a , i n m o d o d a d e f i n i r e t u t t i i c a m p i d e l l a t a b e l l a .

1 0 . 4 . 3 C r e a r e u n a t a b e l l a s e n z a u t i l i z z a r e l ’ A u t o c o m p o s i z i o n e

• P e r f a r e i n m o d o c h e A c c e s s d e c i d a a u t o m a t i c a m e n t e ( i l m e t o d o p iù f a c i l e ) s c e g l i e r e C h i a v e p r i m a r i ai m p o s t a t a i n m o d o a u t o m a t i c o e f a r e c l i c s u A v a n t i .• P e r d e c i d e r e a u t o n o m a m e n t e s u l l a c h i a v e p r i m a r i a , s c e g l i e r e l’ o p z i o n e C h i a v e p r i m a r i a d e f i n i t a d a l l ’ u t e n t e e p o i f a r e c l i c s u A v a n t i . N e l l a f i n e s t r a d i d i a l o g o s u c c e s s i v a , s c e g l i e r e n e l l ’ e l e n c o a d i s c e s a q u a l u n q u e c a m p o d e b b a r i s u l t a r e u n i v o c o p e r c i a s c u n r e c o r d . S i d e v e s p e c i f i c a r e a d A c c e s s i l t i p o d i d a t i c o n t e n u t o n e i c a m p i c h i a v e ( n u m e r i a s s e g n a t i d a A c c e s s , n u m e r i im m e s s i q u a n d o s i i m m e t t o n o i n u o v i r e c o r d o p p u r e n u m e r i e / o l e t t e r e d i g i t a t e a l m o m e n t o d e l l ’ a g g i u n t a d i n u o v i r e c o r d ) . T e r m i n a t a l ’ o p e r a z i o n e d i s c e l t a d e l l e o p z i o n i d i c h i a v e p r i m a r i a , f a r e c l i c s u A v a n t i .

• F a r e c l i c s u A v a n t i p e r c o n t i n u a r e c o n l a s u c c e s s i v a f i n e s t r a ; s i p o t r a n n o d e f i n i r e l e r e l a z i o n i p i ù t a r d i .• F a r e c l i c s u l l a t a b e l l a c o r r e l a t a n e l l ’ e l e n c o e q u i n d i f a r e c l i c s u l p u l s a n t e R e l a z i o n i . N e l l a f i n e s t r a d i d i a l o g o s u c c e s s i v a , i n d i c a r e i l t i p o d i r e l a z i o n e , q u i n d i f a r e cl i c s u O K . R i p e t e r e q u e s t o p a s s o f i n o a l l a d e f i n i z i o n e d i t u t t e l e r e l a z i o n i d e s i d e r a t e e q u i n d i f a r e c l i c su A v a n t i .

• I l n o m e d e v e e s s e r e d i v e r s o d a l n o m e d i q u a l s i a s i a l t r o o g g e t t o d e l l o s t e s s o t i p o a l l ’ i n t e r n o d e l d a t a b a s e .• N o n è p o s s i b i l e a s s e g n a r e l o s t e s s o n o m e a u n a t a b e l l a e a u n a q u e r y.• N e l l ’ a s s e g n a z i o n e d e l n o m e a u n c a m p o , c o n t r o l l o o d o g g e t t o , s i f a c c i a a t t e n z i o n e c h e i l n o m e n o n s i a i d e n t i c o a l n o m e d i u n a p r o p r i e t à o d i u n a l t r o e l e m e n t o g i à u t i l i z z a t o d a A c c e s s .• I l n o m e p u ò a v e r e u n a l u n g h e z z a m a s s i m a d i 6 4 c a r a t t e r i , i n c l u s i g l i s p a z i . I l n o m e n o n p u ò, c o m u n q u e , i n i z i a r e c o n u n o s p a z i o .• I l n o m e p u ò i n c l u d e r e q u a l s i a s i c o m b i n a z i o n e d i l e t t e r e , n u m e r i e s p a z i .• I l n o m e p u ò i n c l u d e r e i s e g n i d i p u n t e g g i a t u r a t r a n n e p u n t o ( . ) , p u n t o e s c l a m a t i v o ( ! ) , a c c e n t o g r a v e ( Á ) o p a r e n t e s i q u a d r e ( [ ] ) .• I l n o m e n o n p u ò i n c l u d e r e c a r a t t e r i d i c o n t r o l l o ( c o d i c i A S C I I d a 0 0 a 3 1 ) .

Page 7: Microsoft Office Access 2003 - Manuale (Italiano)[1]

7/32

©© 20032003

È p o s s i b i l e m o d i f i c a r e l e p r o p r i e t à d i u n c a m p o t r a m i t e l e o p z i o n i d e l l e s c h e d e G e n e r a l e e R i c e r c a d e l l ’ a r e a P r o p r i e t à c a m p o d e i r i q u a d r o i n f e r i o r e d e l l a f i n e s t r a d e l l a S t r u t t u r a d e l l a t a b e l l a . T i p i d i d a t i d i v e r s i p r e s e n t a n o p r o p r i e t à d i v e r s e . P e r i m p o s t a r e l e p r o p r i e t à d i u n c a m p o , s e l e z i o n a r e i l c a m p o a p p r o p r i a t o n e l r i q u a d r o s u p e r i o r e d e l l a f i n e s t r a d e l l a S t r u t t u r a d e l l a t a b e l l a , f a r e c l i c s u l l a s c h e d a a p p r o p r i a t a ( G e n e r a l e o R i c e r c a ) n e l l ’ a r e a P r o p r i e t à c a m p o d e l r i q u a d r o i n f e r i o r e d e l l a f i n e s t r a d e l l a S t r u t t u r a d e l l a t a b e l l a , f a r e c l i c s u l l a c a s e l l a a c c a n t o a l l a p r o p r i e t à c h e s i d e s i d e r a i m p o s t a r e , d i g i t a r e u n v a l o r e r e l a t i v o a l l a p r o p r i e t à o p p u r e f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a ( s e v i s u a l i z z a t o ) a c c a n t o a l l a p r o p r i e t à e f a r e c l i c s u u n ’ o p z i o n e d e l l ’ e l e n c o . L e p r o p r i e t à p iù i m p o r t a n t i d e i c a m p i p r e s e n t i n e l l a s c h e d a G e n e r a l e s o n o

1 0 . 4 . 4 I m p o s t a r e l e p r o p r i e t à d e i c a m p i

U n a c h i a v e p r i m a r i a è u n c a m p o c h e i d e n t i f i c a c i a s c u n r e c o r d i n m o d o u n i v o c o . Q u a n d o s i d e f i n i s c e u n a c h i a v e p r i m a r i a , s i d i c e a d A c c e s s d i f a r e q u e s t e d u e c o s e :

U n a c h i a v e p r i m a r i a p u ò e s s e r e c o s t i t u i t a d a u n s o l o c a m p o o p p u r e d a d u e o p iù c a m p i . S e d u e o p iù c a m p i d e f i n i s c o n o u n a c h i a v e p r i m a r i a , A c c e s s c o n s i d e r a i r e c o r d d u p l i c a t i s o l o s e è i d e n t i c o i l c o n t e n u t o c o m b i n a t o d i t u t t i i c a m p i c o s t i t u e n t i l a c h i a v e p r i m a r i a . P e r i m p o s t a r e u n a c h i a v e p r i m a r i a n e l l a s t r u t t u r a d i u n a t a b e l l a :1 - S e l e z i o n a r e i l c a m p o , c h e s i d e s i d e r a u t i l i z z a r e c o m e c h i a v e p r i m a r i a , f a c e n d o c l i c s u l p u l s a n t e s e l e t t o r e d i r i g a a s i n i s t r a d e l n o m e d e l c a m p o . O p p u r e , s e s i v o g l i o n o s c e g l i e r e p iù c a m p i , t e n e r e p r e m u t o i l t a s t o C t r l e f a r e c l i c s u l s e l e t t o r e d i r i g a r e l a t i v o a c i a s c u n o d e i c a m p i c h e s i d e s i d e r a d e f i n i r e .2 - F a r e c l i c s u l p u l s a n t e C h i a v e p r i m a r i a d e l l a b a r r a d e g l i s t r u m e n t i . O p p u r e , s c e g l i e r e i l c o m a n d o M o d i f i c a | C h i a v e p r i m a r i a , o f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l s e l e t t o r e d i r i g a e v i d e n z i a t o e s c e g l i e r e C h i a v e p r i m a r i a . I c a m p i i m p o s t a t i c o m e c h i a v e p r i m a r i a p r e s e n t a n o u n ’ i c o n a d i c h i a v e n e l s e l e t t o r e d i r i g a .

1 0 . 4 . 5 I m p o s t a z i o n e d i u n a c h i a v e p r i m a r i a

A l f i n e d i a c c e l e r a r e l’ o r d i n a m e n t o e l e r i c e r c h e i n u n d e t e r m i n a t o c a m p o , s i p u ò a g g i u n g e r e u n i n d i c e a l c a m p o . N o n t u t t i i t i p i d i d a t i p o s s o n o e s s e r e i n d i c i z z a t i , m a qu a l s i a s i c a m p o c h e p o s s i e d a u n a p r o p r i e t àd e n o m i n a t a I n d i c i z z a t o i n f o n d o a l l a s c h e d a G e n e r a l e è c a n d i d a t o a l l ’ i n d i c i z z a z i o n e . O g n i t a b e l l a d e l d a t a b a s e p u ò a v e r e f i n o a 3 2 i n d i c i . P e r a g g i u n g e r e o r i m u o v e r e u n i n d i c e s u u n c a m p o :1 - F a r e c l i c s u l n o m e d e i c a m p o c o n c u i s i v u o l e l a v o r a r e .2 - F a r e c l i c s u l l a s c h e d a G e n e r a l e s o t t o l e P r o p r i e t à C a m p o .3 - F a r e c l i c s u l l a p r o p r i e t à I n d i c i z z a t o s e d i s p o n i b i l e ; f a r e c l i c s u l s i m b o l o d i e l e n c o a di s c e s a a c c a n t o a I n d i c i z z a t o e q u i n d i s u u n a d e l l e o p z i o n i d i s p o n i b i l i : N o , S ì ( c o n d u p l i c a t i ) , S ì ( s e n z a d u p l i c a t i ) .

1 0 . 4 . 6 D e f i n i z i o n e d e g l i i n d i c i

I n s e r i t i i c a m p i d e l l a t a b e l l a , è p o s s i b i l e c h i u d e r e e s a l v a r e l a s t r u t t u r a d e l l a t a b e l l a . S e g u i r e q u e s t i p a s s i :1 - S c e g l i e r e F i l e | C h i u d i o p r e m e r e C t r l + W o c l i c c a r e s u C h i u d i n e l l a f i n e s t r a d e l l a S t r u t t u r a t a b e l l a .2 - S e c o m p a r e u n a f i n e s t r a d i d i a l o g o , s c e g l i e r e S ì p e r c o n f e r m a r e i l s a l v a t a g g i o .3 - D i g i t a r e i l n o m e c h e s i d e s i d e r a a s s e g n a r e a l l a t a b e l l a , s e i l p r o g r a m m a r i c h i e d e u n n o m e d i t a b e l l a e p o i f a r e c l i c s u O K . S e n o n è s t a t a d e f i n i t a u n a c h i a v e p r i m a r i a , c o m p a r e u n a f i n e s t r a d i d i a l o g o c h e i n v i t a a d e f i n i r e u n a c h i a v e p r i m a r i a .4 - D e f i n i r e u n a c h i a v e p r i m a r i a . S e s i h a n n o d u b b i , è c o n s i g l i a b i l e f a r e c l i c s u S ì e f a r e i n m o d o c h e A c c e s s c r e i a u t o m a t i c a m e n t e u n a c h i a v e p r i m a r i a ( A c c e s s c r e e r à u n c a m p o d e n o m i n a t o I D c o n i l T i p o d a t i C o n t a t o r e ) . S e o g n i t a b e l l a p o s s i e d e u n a c h i a v e p r i m a r i a , i l d a t a b a s e v i e n e e s e g u i t o p iù v e l o c e m e n t e . I l p r o g r a m m a r i p o r t a q u i n d i a l l a f i n e s t r a d e l d a t a b a s e n e l l a q u a l e c o m p a r e i l n o m e d e l l a n u o v a t a b e l l a n e l l a s c h e d a T a b e l l e .

1 0 . 4 . 7 S a l v a r e l a s t r u t t u r a d i u n a t a b e l l a

• C o n s e n t i l u n g h e z z a z e r o - S e i m p o s t a t a a S ì, i l c a m p o a c c e t t a c o m e d a t o v a l i d o a n c h e u n a s t r i n g a v u o t a , a n c h e s e l a p r o p r i e t à R i c h i e s t o è S ì.• E t i c h e t t a - C o n s e n t e l a d e f i n i z i o n e d i u n n o m e a l t e r n a t i v o p e r i l c a m p o d a u s a r e i n V i s u a l i z z a z i o n e F o g l i o d a t i e c o m e e t i c h e t t a n e l l a c r e a z i o n e d i m a s c h e r e e r e p o r t .• P o s i z i o n i d e c i m a l i - C o n s e n t e d i s p e c i f i c a r e i l n u m e r o d i c i f r e d e c i m a l i a d e s t r a d e l s e p a r a t o r e d e c i m a l e d i u n c a m p o n u m e r i c o .• V a l o r e p r e d e f i n i t o - C o n s e n t e d i d e f i n i r e u n v a l o r e c h e v i e n e i n s e r i t o a u t o m a t i c a m e nt e n e l c a m p o ; s e n e c e s s a r i o , a l m o m e n t o d e l l ’ i m m i s s i o n e d e i d a t i , l ’ u t e n t e p u ò i m m e t t e r e u n v a l o r e d i v e r s o .I l v a l o r e p r e d e f i n i t o d i u n c a m p o d i t e s t o è l a s t r i n g a v u o t a ; p e r u n c a m p o N u m e r i c o o V a l u t a , è z e r o .• D i m e n s i o n e c a m p o - C o n s e n t e d i s p e c i f i c a r e l a l u n g h e z z a m a s s i m a d e l t e s t o a m m e s s o n e l c a m p o o l ’ i n t e r v a l l o d i n u m e r i a c c e t t a b i l e . L a d i m e n s i o n e c a m p o p r e d e f i n i t a p e r i l t e s t o è 5 0 , m e n t r e p e r i n u m e r i èI n t e r o l u n g o . E p o s s i b i l e m o d i f i c a r e q u e s t e i m p o s t a z i o n i s c e g l i e n d o S t r u m e n t i | O p z i o n i , f a c e n d o c l i c s u l l a s c h e d a T a b e l l e | Q u e r y e m o d i f i c a n d o i v a l o r i n e l l e c a s e l l e D i m e n s i o n i c a m p o p r e d e f i n it e .• F o r m a t o - C o n s e n t e d i d e f i n i r e l ’ a s p e t t o d e i d a t i c o n t e n u t i n e l c a m p o .

• V e r i f i c a r e c h e n o n c i s i a n o d u e r e c o r d d e l l a t a b e l l a c o n l o s t e s s o v a l o r e c o n t e n u t o n e l c a m p o c h e d e f i n i s c e l a c h i a v e p r i m a r i a .• M a n t e n e r e i r e c o r d o r d i n a t i i n b a s e a l l e v o c i c o n t e n u t e n e l c a m p o d e l l a c h i a v e p r i m a r i a .

Page 8: Microsoft Office Access 2003 - Manuale (Italiano)[1]

8/32

©© 20032003

1 0 . 4 . 8 A p e r t u r a d i u n a t a b e l l a

Q u a n d o l a t a b e l l a è a p e r t a s i p u ò p a s s a r e r a p i d a m e n t e d a l l a V i s u a l i z z a z i o n e F o g l i o d a t i a l l a V i s u a l i z z a z i o n eS t r u t t u r a . L e d i f f e r e n z e t r a l e d u e m o d a l i t à d i v i s u a l i z z a z i o n e s o n o :

P e r c o m m u t a r e l a v i s u a l i z z a z i o n e m e n t r e è a p e r t a u n a t a b e l l a , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a d e l l a b a r r a d e g l i s t r u m e n t i . È p o s s i b i l e c o m m u t a r e l a v i s u a l i z z a z i o n e a n c h e s c e g l i e n d o i l c o m a n d o V i s u a l i z z a |

V i s u a l i z z a z i o n e s t r u t t u r a o V i s u a l i z z a | V i s u a l i z z a z i o n e f o g l i o d a t i , O p p u r e , f a c e n d o c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i V i s u a l i z z a e s c e g l i e n d o q u i n d i V i s u a l i z z a z i o n e S t r u t t u r a o p p u r e V i s u a l i z z a z i o n e F o g l i o d a t i .

1 0 . 4 . 9 C o m e p a s s a r e d a l l a V i s u a l i z z a z i o n e S t r u t t u r a a l l a V i s u a l i z z a z i o n e F o g l i o d a t i

E c c o a l c u n e t e c n i c h e u t i l i z z a b i l i p e r l a m o d i f i c a d e l l a s t r u t t u r a d i u n a t a b e l l a i n V i s u a l i z z a z i o n e S t r u t t u r a . A p r i r e l a t a b e l l a c h e s i v u o l e m o d i f i c a r e i n V i s u a l i z z a z i o n e S t r u t t u r a ( o p p u r e p a s s a r e a l l a V i s u a l i z z a z i o n e S t r u t t u r a s e s i è i n V i s u a l i z z a z i o n e F o g l i o d a t i ) .

1 0 . 4 . 1 0 M o d i f i c a r e l a s t r u t t u r a d i u n a t a b e l l a

È p o s s i b i l e c r e a r e c a m p i d i r i c e r c a c h e a c c e l e r a n o e s e m p l i f i c a n o l ’ i m m i s s i o n e d e i d a t i i n u n f o g l i o d a t i o i n u n a m a s c h e r a d i u n a t a b e l l a . I l c a m p o d i r i c e r c a r i c e r c a i v a l o ri m e m o r i z z a t i i n u n ’ a l t r a p o s i z i o n e e q u i n d i i m m e t t e a u t o m a t i c a m e n t e i l v a l o r e s c e l t o d a l l ’ u t e n t e . I d a t i d i o r i g i n e p o s s o n o p r o v e n i r e d a l l e f o n t i s e g u e n t i :

P e r i m p o s t a r e u n c a m p o d i r i c e r c a i n A c c e s s , s i p u ò u t i l i z z a r e l ’ A u t o c o m p o s i z i o n e R i c e r c a o p p u r e l a s c h e d a R i c e r c a n e l l ’ a r e a P r o p r i e t à c a m p o d e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a t a b e l l a .

1 0 . 4 . 1 1 I c a m p i d i r i c e r c a

N a t u r a l m e n t e , s i p o s s o n o d e f i n i r e l e p r o p r i e t à d e i c a m p i d i r i c e r c a a n c h e n e l m o d o s e g u e n t e :1 - P a s s a r e a l l a v i s u a l i z z a z i o n e d e l l a s t r u t t u r a d e l l a t a b e l l a .2 - S e n o n l o s i è a n c o r a f a t t o , s p e c i f i c a r e N o m e c a m p o e T i p o d a t i r e l a t i v i a l c a m p o d i r i c e r c a .3 - F a r e c l i c s u l l a s c h e d a R i c e r c a n e l l ’ a r e a d e l l e P r o p r i e t à c a m p o d e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a t a b e l l a .4 - F a r e c l i c n e l l a c a s e l l a d e l l a p r o p r i e t à V i s u a l i z z a c o n t r o l l o, f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a c h e c o m p a r e e p o i s c e g l i e r e C a s e l l a d i r i e p i l o g o o C a s e l l a c o m b i n a t a .5 - C o m p l e t a r e l e a l t r e p r o p r i e t à d e l l a F i n e s t r a d e l l a p r o p r i e t à d i r i c e r c a .

1 0 . 4 . 1 2 I c a m p i d i r i c e r c a c o n l a F i n e s t r a d e l l e p r o p r i e t à R i c e r c a

D o p o l a c r e a z i o n e d i u n a t a b e l l a , è p o s s i b i l e a p r i r l a i n q u a l s i a s i m o m e n t o :1 - F a r e c l i c s u l l a s c h e d a T a b e l l e n e l l a f i n e s t r a d e l d a t a b a s e .2 - F a r e c l i c s u l n o m e d e l l a t a b e l l a c h e s i d e s i d e r a a p r i r e .

• P e r a p r i r e l a t a b e l l a a l l o s c o p o d i i m m e t t e r e o m o d i f i c a r e i d at i , f a r e c l i c s u l p u l s a n t e A p r i o f a r e d o p p i o c l i c s u l n o m e d e l l a t a b e l l a .• P e r v i s u a l i z z a r e o m o d i f i c a r e l a s t r u t t u r a d e l l a t a b e l l a , f a r e c l i c s u l p u l s a n t e S t r u t t u r a .

• I n V i s u a l i z z a z i o n e F o g l i o d a t i , n o r m a l m e n t e , s i l a v o r a c o n i l c o n t e n u t o d e l l a t a b e l l a ( d a t i ) . T u t t a v i a , èp o s s i b i l e e f f e t t u a r e a n c h e a l c u n e m o d i f i c h e a l l a s t r u t t u r a d e l l a t a b e l l a .• I n V i s u a l i z z a z i o n e S t r u t t u r a , s i l a v o r a s o l o c o n l a s t r u t t u r a d e l l a t a b e l l a ( n o m i d i c a m p o , t i p i d i d a t i , p r o p r i e t à ) e n o n c o n i l s u o c o n t e n u t o .

• P e r m o d i f i c a r e n o m e c a m p o , t i p o d a t i , d e s c r i z i o n e o p r o p r i e t à , u t i l i z z a r e l e s t e s s e t e c n i c h e u t i l i z z a t e p e r l a c r e a z i o n e d e l l a s t r u t t u r a d e l l a t a b e l l a .• P e r i n s e r i r e u n n u o v o c a m p o n e l l a s t r u t t u r a d e l l a t a b e l l a , p o r t a r e i l c u r s o r e n e l p u n t o i n c u i d o v ràc o m p a r i r e l a n u o v a r i g a d e l c a m p o e f a r e c l i c s u l p u l s a n t e I n s e r i s c i r i g h e d e l l a b a r r a d e g l i s t r u m e n t i o p r e m e r e i l t a s t o I n s e r i s c i ; o p p u r e s c e g l i e r e i l c o m a n d o I n s e r i s c i | R i g h e .• P e r e l i m i n a r e u n c a m p o d a l l a s t r u t t u r a d e l l a t a b e l l a , p o r t a r e i l c u r s o r e n e l l a r i g a c h e c o n t i e n e i l c a m p o c h e s i d e s i d e r a e l i m i n a r e e f a r e c l i c s u l p u l s a n t e E l i m i n a r i g h e d e ll a b a r r a d e g l i s t r u m e n t i . O p p u r e , s c e g l i e r e i l c o m a n d o M o d i f i c a | E l i m i n a r i g h e .• P e r a n n u l l a r e u n i n s e r i m e n t o o u n ’ e l i m i n a z i o n e a c c i d e n t a l e , f a r e c l i c s u l p u l s a n t e A n n u l l a d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e M o d i f i c a | A n n u l l a o p r e m e r e C t r l + Z .

• U n a t a b e l l a c h e p o s s i e d e u n c a m p o d i c h i a v e p r i m a r i a• U n a q u e r y ( o i s t r u z i o n e S Q L ) c h e v i s u a l i z z a c o l o n n e e d a t i s p e c i f i c a t i d i u n a t a b e l l a• U n e l e n c o f i s s o d i v a l o r i c h e v e n g o n o i m m e s s i a l m o m e n t o d e l l a c r e a z i o n e d e l c a m p o• U n e l e n c o d i t u t t i i n o m i d e i c a m p i d i u n a t a b e l l a

Page 9: Microsoft Office Access 2003 - Manuale (Italiano)[1]

9/32

©© 20032003

P e r d e f i n i r e r e l a z i o n i t r a t a b e l l e e s i s t e n t i :1 - C h i u d e r e t u t t e l e t a b e l l e a p e r t e , i n m o d o c h e r e s t i v i s u a l i z z a t a s o l o l a f i n e s t r a d e l d a t a b a s e ,2 - S c e g l i e r e i l c o m a n d o S t r u m e n t i | R e l a z i o n i , f a r e c l i c s u l p u l s a n t e R e l a z i o n i d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e i n u n p u n t o q u a l s i a s i d e l l a f i n e s t r a d e l d a t a b a s e e s c e g l i e r e R e l a z i o n i . C o m p a r e l a f i n e s t r a R e l a z i o n i .3 - V i s u a l i z z a r e l e t a b e l l e p e r l e q u a l i s i v o g l i o n o d e f i n i r e r e l a zi o n i f a c e n d o c l i c s u l p u l s a n t e M o s t r a t a b e l l a d e l l a b a r r a d e g l i s t r u m e n t i o f a c e n d o c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u u n a p a r t e v u o t a d e l l a f i n e s t r a R e l a z i o n i e s c e g l i e n d o M o s t r a t a b e l l a ; o p p u r e s c e g l i e r e i l c o m a n d o R e l a z i o n i | M o s t r a t a b e l l a .4 - A g g i u n g e r e u n a t a b e l l a o q u e r y a l l a f i n e s t r a R e l a z i o n i c l i c c a n d o s u u n a s c h e d a a p p r o p r i a t a ( T a b e l l e , Q u e r yo e n t r a m b e ) n e l l a f i n e s t r a d i d i a l o g o d e l c o m a n d o M o s t r a t a b e l l a . Q u i n d i c l i c c a r e s u l n o m e d e l l a t a b e l l a oq u e r y c h e s i v u o l e a g g i u n g e r e e c l i c c a r e s u A g g i u n g i ; o f a r e d o p p i o c l i c s u i n o m i d e l l a t a b e l l a o d e l l a q u e r y.5 - R i p e t e r e i l p a s s o 4 p e r a g g i u n g e r e t u t t e l e t a b e l l e e q u e r y p e r l e q u a l i s i d e s i d e r a d e f i n i r e r e l a z i o n i . Q u i n d i , f a r e c l i c s u l p u l s a n t e C h i u d i .6 - D e f i n i r e l e r e l a z i o n i t r a l e t a b e l l e c o m e i l l u s t r a t o n e l l a s e z i o n e c h e s e g u e .

P e r l a d e f i n i z i o n e d e l l e r e l a z i o n i t r a d u e t a b e l l e d e l l a f i n e s t r a R e l a z i o n i :1 - P o r t a r e i l p u n t a t o r e d e l m o u s e s u l c a m p o d e l l a c h i a v e p r i m a r i a d e l l a t a b e l l a p r i m a r i a ( t a b e l l a s u l l a t o “ U n o ”d i u n a r e l a z i o n e U n o a m o l t i ) . Q u e s t a c h i a v e è i n g r a s s e t t o n e l l ’ e l e n c o .2 - T r a s c i n a r e i l n o m e d i q u e s t o c a m p o s u l c a m p o c o r r i s p o n d e n t e d e ll a t a b e l l a c o r r e l a t a ( c i o è , t r a s c i n a r l o s u l l a c h i a v e e s t e r n a a p p r o p r i a t a ) .3 - R i l a s c i a r e i l p u l s a n t e d e l m o u s e p e r v i s u a l i z z a r e l a f i n e s t r a d i d i a l o g o R e l a z i o n i .4 - ( O p z i o n a l e ) S e l e z i o n a r e l a c a s e l l a d i c o n t r o l l o A p p l i c a i n t e g r i t à r e f e r e n z i a l e p e r g a r a n t i r e l’ i n t e g r i t àr e f e r e n z i a l e t r a l e d u e t a b e l l e . Q u i n d i , i n d i c a r e c o m e g e s t i r e l e m o d i f i c h e e c a n c e l l a z i o n i n e l l a t a b e l l a p r i m a r i a :

5 – ( O p z i o n a l e ) M o d i f i c a r e i l t i p o d i j o i n t r a t a b e l l e f a c e n d o c l i c s u l p u l s a n t e T i p o j o i n , s c e g l i e r e i l t i p o d i j o i nd e s i d e r a t o e q u i n d i f a r e c l i c s u O K . J o i n è u n t e r m i n e d i d a t a b a s e c h e d e s c r i v e l a c o r r i s p o n d e n z a t r a u n C a m p o d i u n a t a b e l l a e u n c a m p o d i u n ’ a l t r a t a b e l l a . È p o s s i b i l e e f f e t t u a r e v a r i t i p i d i j o i n , a n c h e s e i l j o i n p r e d e f i n i t o ( d e n o m i n a t o e q u i j o i n o j o i n i n t e r n o ) r i s o l v e l a m a g g i o r p a r t e d e l l e s i t u a z i o n i . 6 - P e r c o n c l u d e r e l ’ a t t i v i t à , f a r e c l i c s u l p u l s a n t e C r e a .A c c e s s v i s u a l i z z a l a r e l a z i o n e t r a l e d u e t a b e l l e c o m e u n a l i n e a d i j o i n c h e c o l l e g a i d u e c a m p i c o r r e l a t i . L ’ a s p e t t o d e l l a l i n e a i n d i c a i l t i p o d i j o i n s c e l t o e l ’ e v e n t u a l e a p p l i c a z i o n e d e l l ’ i n t e g r i t à r e f e r e n z i a l e . U n a l i n e a s p e s s a i n d i c a l’ a p p l i c a z i o n e d e l l ’ i n t e g r i t à r e f e r e n z i a l e . U n a c i f r a 1 i n d i c a l a t a b e l l a s u l l a t o “ U n o ” d e l l a r e l a z i o n e ; i l s i m b o l o d i i n f i n i t o i n d i c a l a t a b e l l a s u l l a t o “ M o l t i ” d e l l a r e l a z i o n e .

1 0 . 4 . 1 5 M e t t e r e i n r e l a z i o n e d u e t a b e l l e

P e r u t i l i z z a r e l ’ A u t o c o m p o s i z i o n e R i c e r c a , s i d e v e p r o c e d e r e n e l m o d o s e g u e n t e :1 - P a s s a r e a l l a V i s u a l i z z a z i o n e d e l l a S t r u t t u r a d e l l a t a b e l l a .2 - P o r t a r e i l c u r s o r e n e l l a r i g a v u o t a c h e d o v rà c o n t e n e r e i l c a m p o d i r i c e r c a . S i p u ò l a s c i a r e v u o t o i l n o m e d e l c a m p o p o i c h é l ’ A u t o c o m p o s i z i o n e R i c e r c a a s s e g n a u n n o m e d i c a m p o a u t o m a t i c a m e n t e .3 - F a r e c l i c s u l l a c e l l a T i p o d a t i a c c a n t o a l n o m e d i c a m p o v u o t o , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a e q u i n d i s c e g l i e r e A u t o c o m p o s i z i o n e R i c e r c a . V i e n e a v v i a t a l ’ A u t o c o m p o s i z i o n e R i c e r c a : s e g u i r e l e i s t r u z i o n i c h e c o m p a i o n o s u l l o s c h e r m o .4 - S c e g l i e r e s e s i d e s i d e r a o t t e n e r e v a l o r i d a u n a t a b e l l a o q u e r y e s i s t e n t e o p p u r e d i g i t a r e d i r e t t a m e n t e i v a l o r i d e s i d e r a t i . F a r e c l i c s u l p u l s a n t e A v a n t i .5 - C o m p l e t a r e l e a l t r e f i n e s t r e d i d i a l o g o , l e g g e n d o a c c u r a t a m e n t e l e i n d i c a z i o n i c h e c o m p a i o n o i n c i a s c u n a d i e s s e e p r e m e n d o i l p u l s a n t e A v a n t i p e r p r o c e d e r e . F a r e a t t e n z i o n e a s c e g l i e r e o d e f i n i r e i n o m i d el l e c o l o n n e n e l l ’ o r d i n e i n c u i s i v u o l e c h e c o m p a i a n o n e l l ’ e l e n c o a d i s c e s a d u r a n t e l ’ i m m i s s i o n e d e i d a t i .6 - N e l l ’ u l t i m a f i n e s t r a , d i g i t a r e ( s e s i v u o l e ) u n ’ e t i c h e t t a p e r i l n u o v o c a m p o e q u i n d i f a r e c l i c s u l p u l s a n t e F i n e p e r t e r m i n a r e i l l a v o r o . O l t r e a g e s t i r e t u t t i i d e t t a g l i i l l u s t r a t i n e l p a s s o 5 p r e c e d e n t e , l ’ A u t o c o m p o s i z i o n e R i c e r c a i m p o s t a a u t o m a t i c a m e n t e a n c h e l e p r o p r i e t à d i r i c e r c a . P e r v i s u a l i z z a r e q u e s t e p r o p r i e t à , p a s s a r e a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a t a b e l l a , f a r e c l i c s u l l a r i g a c h e c o n t i e n e i l c a m p o d i r i c e r c a e p o i f a r e c l i c s u l l a s c h e d a R i c e r c a n e l l ’ a r e a d e l l e P r o p r i e t à c a m p o d e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a t a b e l l a .

1 0 . 4 . 1 3 I c a m p i d i r i c e r c a c o n l ’ A u t o c o m p o s i z i o n e R i c e r c a

1 0 . 4 . 1 4 D e f i n i z i o n e d e l l e r e l a z i o n i t r a t a b e l l e

• S e s i v u o l e c h e l e m o d i f i c h e a l l a t a b e l l a s u l l a t o “ U n o ” d e l l a r e l a z i o n e s i a n o r i p o r t a t e a u t o m a t i c a m e n t e n e l l a t a b e l l a c o r r e l a t a , S e l e z i o n a r e l a c a s e l l a d i c o n t r o l l o A g g i o r n a c a m p i c o r r e l a t i a c a t e n a .• S e s i v u o l e c h e l e c a n c e l l a z i o n i e f f e t t u a t e i n u n a t a b e l l a s i a n o r i p o r t a t e a u t o m a t i c a m e n t e n e l l a t a b e l l a c o r r e l a t a , s e l e z i o n a r e l a c a s e l l a d i c o n t r o l l o E l i m i n a r e c o r d c o r r e l a t i a c a t e n a .

Page 10: Microsoft Office Access 2003 - Manuale (Italiano)[1]

10/32

©© 20032003

F i l e d i L o t u s 1- 2-3 ( a s o l a l e t t u r a s e c o l l e g a t i) .

T a b e l l e e d e l e n c h i H T M L e H T X

D a t a b a s e t e n u t i in f o g l i d i l a v o r o d i M i c r o s o f t E x c e l , v e r s i o n i 5 . 0 e 7 . 0

D a t a b a s e c r e a t i c o n i l m o t o r e d i d a t a b a s e M i c r o s o f t j e t , A c c e s s ( v e r s i o n i 1 . x 2 . 0 , 7 . 0 ) e V i s u a l B a s i c

D a t a b a s e O D B C , i n c l u s o M i c r o s o f t S Q L S e r v e r . O c c o r r e u n d r i v e r O D B C i n s t a l l a t o e c o n f i g u r a t o

M i c r o s o f t F o x P r o v e r s i o n i 2 . 0 , 2 . 5 , 2 . 6 e 3 . 0 .

P a r a d o x v e r s i o n i 3 . x , 4 . x e S . O .

d B A S E I I I , I I I + , I V e V .

P r i m a d i i m p o r t a r e d a t i d a u n o d i q u e s t i f o r m a t i i n u n d a t a b a s e d i A c c e s s , o c c o r r e d e c i d e r e s e c o l l e g a r e i d a t i o i m p o r t a r e u n a l o r o c o p i a s e p a r a t a .

1 0 . 5 . 2 I m p o r t a r e o c o l l e g a r e t a b e l l e

E c c o i p a s s i g e n e r a l i p e r i m p o r t a r e o c o l l e g a r e t a b e l l e . L e p r o c e d u r e e s a t t e d i p e n d o n o d a l t i p o d i d a t i c h e s i i n t e n d o n o i m p o r t a r e o c o l l e g a r e .l - A p r i r e i l d a t a b a s e n e l q u a l e s i d e s i d e r a i m p o r t a r e o a c u i s i vu o l e c o l l e g a r e l a t a b e l l a e p a s s a r e a l l a f i n e s t r a d e l d a t a b a s e , s e n o n è v i s i b i l e .2 - S c e g l i e r e i l c o m a n d o F i l e | C a r i c a d a t i e s t e r n i | I m p o r t a o f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l l a f i n e s t r a d e l d a t a b a s e ( s u u n a p a r t e g r i g i a , n o n s u l n o m e d i u n a t a b e l l a ) e s c e g l i e r e I m p o r t a . O p p u r e f a r e c l i c s u l l a s c h e d a T a b e l l e d e l l a f i n e s t r a d e l d a t a b a s e , q u i n d i s u l p u l s a n t e N u o v o e f a r e d o p p i o c l i c s u I m p o r t a t a b e l l a o C o l l e g a t a b e l l a n e l l a f i n e s t r a d i d i a l o g o N u o v a t a b e l l a .3 - S c e g l i e r e i l t i p o d i d a t i c h e s i v o g l i o n o i m p o r t a r e o c o l l e g a r e n e l l ’ e l e n c o a d i s c e s a T i p o f i l e .4 - I n d i v i d u a r e i l n o m e d e l f i l e c h e s i v u o l e i m p o r t a r e o c o l l e g a r e e f a r e c l i c s u d i e s s o n e l l ’ e l e n c o C e r c a i n .5 - C l i c c a r e s u I m p o r t a o C o l l e g a o f a r e d o p p i o c l i c s u l n o m e d i f i l e c h e s i d e s i d e r a i m p o r t a r e o c o l l e g a r e .6 - R i s p o n d e r e a e v e n t u a l i r i c h i e s t e d e l p r o g r a m m a e a l l e f i n e s t r e d i d i a l o g o c h e c o m p a i o n o .7 – C l i c c a r e s u O K s e c o m p a r e u n m e s s a g g i o c h e s e g n a l a i l c o m p l e t a m e n t o d e l l ’ o p e r a z i o n e e p o i s u C h i u d i .D o p o a v e r c o l l e g a t o u n a t a b e l l a d i u n a l t r o d a t a b a s e , s i p u ò u t i l i z z a r e l a t a b e l l a c o l l e g a t a c o m e q u a l s i a s i a l t r a t a b e l l a d i A c c e s s . È p o s s i b i l e i m m e t t e r e d a t i e a g g i o r n a r l i , u s a r e q u e r y, m a s c h e r e e r e p o r t e s i s t e n t i o s v i l u p p a r n e n u o v i . L e u n i c h e r e s t r i z i o n i s o n o :

È p o s s i b i l e a s s e g n a r e a u n f i l e i m p o r t a t o o c o l l e g a t o u n n o m e p iù d e s c r i t t i v o n e l l a f i n e s t r a d e l d a t a b a s e d i A c c e s s . P e r r i n o m i n a r e r a p i d a m e n t e u n a t a b e l l a i m p o r t a t a o c o l l e g a t a , f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l s u o n o m e n e l l a f i n e s t r a d e l d a t a b a s e , s c e g l i e r e R i n o m i n a n e l m e n u d i s c e l t a r a p i d a , d i g i t a r e u n n u o v o n o m e e p o i p r e m e r e I n v i o. Q u a n d o n o n o c c o r r e p i ù u t i l i z z a r e u n a t a b e l l a c o l l e g a t a s i p u ò e l i m i n a r e i l c o l l e g a m e n t o . A q u e s t o s c o p o , a p r i r e l a f i n e s t r a d e l d a t a b a s e c on t e n e n t e l a t a b e l l a c o l l e g a t a e f a r e c l i c s u l l a s c h e d a T a b e l l e . Q u i n d i , c l i c c a r e s u l l a t a b e l l a d e l l a q u a l e s i d e s i d e r a e l i m i n ar e i l c o l l e g a m e n t o e p r e m e r e i l t a s t o C a n c . A l l a r i c h i e s t a d i c o n f e r m a d e l l a c a n c e l l a z i o n e d e l c o l l e g a m e n t o , f a r e c l i c s u S ì .

S e s i p o s s i e d o n o g ià d a t i m e m o r i z z a t i i n u n c o m p u t e r c h e s i v o r r e b b e r o i m p o r t a r e i n A c c e s s o s e s i è c r e a t o u n d a t a b a s e d i A c c e s s e s i v o g l i o n o e s p o r t a r e d a t i i n u n a l t r o p r o gr a m m a A c c e s s o f f r e d i v e r s i m e t o d i p e r c o n d i v i d e r e i d a t i c o n a l t r i p r o g r a m m i :C o l l e g a m e n t o - C o n s e n t e l ’ a c c e s s o d i r e t t o a i d a t i d i u n a l t r o d a t a b a s e c o m p u t e r i z z a t o . L e e v e n t u a l i m o d i f i c h e e f f e t t u a t e t r a m i t e A c c e s s a v r a n n o e f f e t t o s u l d a t a b a s e o r i g i n a r i o e s u l d a t a b a s e d i A c c e s s .I m p o r t a z i o n e - C o n s e n t e d i c r e a r e i n u n a t a b e l l a d i A c c e s s u n a c o p i a s e p a r a t a d i d a t i p r o v e n i e n t i d a p r o g r a m m i e f o r m a t i d i v e r s i . L e m o d i f i c h e e f f e t t u a t e t r a m i t e A c c e s s n o n h a n n o e f f e t t o s u i d a t i o r i g i n a r i .E s p o r t a z i o n e - C o n s e n t e d i c o p i a r e i d a t i d a u n a t a b e l l a d i A c c e s s i n u n p r o g ra m m a o i n u n f o r m a t o d i v e r s o , c o m e , a d e s e m p i o , M i c r o s o f t W o r d o E x c e l o a n c h e i n u n d a t a b a s e s e p a r a t o d i A c c e s s . I d a t i e s p o r t a t i s o n o u n a c o p i a c o m p l e t a m e n t e s e p a r a t a c h e n o n è c o l l e g a t a i n n e s s u n m o d o a i d a t i o r i g i n a r i d i A c c e s s .D o p o l’ i m p o r t a z i o n e o i l c o l l e g a m e n t o i n A c c e s s d i d a t i p r o v e n i e n t i d a u n a l t r o p r o g r a m m a , è p o s s i b i l e u t i l i z z a r e n o r m a l m e n t e i d a t i c o m e s e f o s s e r o s t a t i c r e a t i o r i g in a r i a m e n t e i n A c c e s s .

1 0 . 5 C o l l e g a r e , i m p o r t a r e e d e s p o r t a r e d a t i

È p o s s i b i l e i m p o r t a r e o c o l l e g a r e d a t i d i u n q u a l s i a s i f o r m a t o t r a i s e g u e n t i :

1 0 . 5 . 1 C o m e i n t e r a g i r e c o n d a t a b a s e d i v e r s i

• N o n è p o s s i b i l e m o d i f i c a r e l a s t r u t t u r a d i u n a t a b e l l a c o l l e g a t a .• N o n è p o s s i b i l e c a n c e l l a r e r i g h e d a u n a t a b e l l a c o l l e g a t a d i E x c e l o d a u n f i l e d i t e s t o .• I f i l e d i L o t u s 1- 2-3 c h e s i c o l l e g a n o a u n d a t a b a s e d i A c c e s s s o n o a s o l a l e t t u r a .

Page 11: Microsoft Office Access 2003 - Manuale (Italiano)[1]

11/32

©© 20032003

I m p o r t a r e o c o l l e g a r e u n f o g l i o e l e t t r o n i c o è m o l t o f a c i l e , g r a z i e a l l ’ A u t o c o m p o s i z i o n e I m p o r t a z i o n e . P e r i m p o r t a r e o c o l l e g a r e u n f o g l i o e l e t t r o n i c o :1 - I n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e d i A c c e s s n e l l a q u a l e d e v e c o m p a r i r e l a t a b e l l a e s c e g l i e r e i l c o m a n d o I m p o r t a o C o l l e g a .2 - N e l l ’ e l e n c o a d i s c e s a T i p o f i l e , s c e g l i e r e i l f o r m a t o d i f o g l i o e l e t t r o n i c o c h e s i v u o l e i m p o r t a r e . L e o p z i o n i d i s p o n i b i l i s o n o M i c r o s o f t E x c e l ( i m p o r t a z i o n e o c o l l e g a m e n t o ) e L o t u s 1- 2- 3 ( s o l o i m p o r t a z i o n e ) .3 - R i n t r a c c i a r e i l f o g l i o e l e t t r o n i c o c h e s i d e s i d e r a i m p o r t a r e o c o l l e g a r e e f a r e d o p p i o c l i c s u d i e s s o n e l l ’ e l e n c o a l d i s o t t o d e l l a c a s e l l a C e r c a i n . V i e n e a v v i a t a l ’ A u t o c o m p o s i z i o n e.4 - S c e g l i e r e l ’ o p z i o n e M o s t r a f o g l i d i l a v o r o o M o s t r a i n t e r v a l l i d e f i n i t i , f a r e c l i c s u l n o m e d i f o g l i o d i l a v o r o o i n t e r v a l l o d e n o m i n a t o c h e s i i n t e n d e u t i l i z z a r e e q u i n d i f a r e c l i c s u A v a n t i .5 - S e l a p r i m a r i g a d e l l ’ i n t e r v a l l o o z o n a c h e s i i n t e n d e i m p o r t a r e c o n t i e n e e t i c h e t t e c l i c s i v o g l i o n o u t i l i z z a r e c o m e n o m i d i c a m p o p e r l a t a b e l l a , a t t i v a r e l ’ o p z i o n e I n t e s t a z i o n i d i c o l o n n e n e l l a p r i m a r i g a . S e n o n s i a t t iv a q u e s t a o p z i o n e , A c c e s s a v v i a l ’ i m p o r t a z i o n e o i l c o l l e g a m e n t o d e i d a t i c o n l a p r i m a r i g a d e l l ’ i n t e r v a l l o d e f i n i t o e a s s e g n a c o m e n o m e d i c a m p o i l n o m e C a m p o s e g u i t o d a u n n u m e r o p r o g r e s s i v o ( a d e s e m p i o , C a m p o 1 , C a m p o 2 , C a m p o 3 e c c . ) . F a r e c l i c s u A v a n t i p e r c o n t i n u a r e . C o m p a r e u n a f i n e s t r a d i d i a l o g o n e l l a q u a l e s i s c e g l i e s e i m p o r t a r e i d a t i i n u n a n u o v a t a b e l l a o p p u r e i n u n a t a b e l l a e s i s t e n t e .6 - F a r e c l i c s u l l ’ o p z i o n e d e s i d e r a t a e s c e g l i e r e u n a t a b e l l a d e l d a t a b a s e a p e r t o , s e s i è s c e l t a l ’ o p z i o n e I n u n a t a b e l l a e s i s t e n t e . F a r e c l i c s u A v a n t i .7 - N e l l a f i n e s t r a d i d i a l o g o c h e c o m p a r e , n e l c a s o d e l l ’ i m p o r t a z i o n e , è p o s s i b i l e s p e c i f i c a r e i n f o r m a z i o n i s u c i a s c u n c a m p o c h e s i i n t e n d e i m p o r t a r e . P e r i n d i c a r e a l l ’ A u t o c o m p o s i z i o n e i l c a m p o d a d e f i n i r e , f a r e c l i c s u u n p u n t o q u a l s i a s i d e i d a t i d i e s e m p i o d i q u e l c a m p o n e l l a p a r t e i n f e r i o r e d e l l a f i n e s t r a d i d i a l o g o . Q u i n d i c o m p i l a r e l a c a s e l l a N o m e c a m p o , s p e c i f i c a r e s e i l c a m p o è i n d i c i z z a t o : o p z i o n i N o , S ì ( D u p l i c a t i O K ) o p p u r e S i ( S e n z a d u p l i c a t i ) e s p e c i f i c a r e i l t i p o d a t i n e l l ’ e l e n c o a d i s c e s a T i p o d a t i ( s e d i s p o n i b i l e ) . S e s i p r e f e r i s c e o m e t t e r e i l c a m p o ( o s s i a n o n i m p o r t a r l o ) , s c e g l i e r e l ’ o p z i o n e N o n i m p o r t a r e c a m p o . R i p e t e r e i l p a s s o 7 s e n e c e s s a r i o e q u i n d i f a r e c l i c s u A v a n t i .8 - N e l l ’ i m p o r t a z i o n e , l a f i n e s t r a d i d i a l o g o A v a n t i c o n s e n t e d i s p e c i f i c a r e l’ a s s e g n a z i o n e d e l l a c h i a v e p r i m a r i a d a p a r t e d i A c c e s s . S i p u ò f a r e i n m o d o c h e A c c e s s a g g i u n g a a u t o m a t i c a m e n t e l a c h i a v e p r i m a r i a , s c e g l i e r e l a c h i a v e p r i m a r i a n e l l ’ e l e n c o a d i s c e s a d e i n o m i c a m p o d i s p o n i b i l i o p p u r e o m e t t e r e l a ch i a v e p r i m a r i a . E f f e t t u a t e l e p r o p r i e s c e l t e , f a r e c l i c s u A v a n t i p e r c o n t i n u a r e .9 - S e s i è s c e l t o d i i m p o r t a r e d a t i i n u n a t a b e l l a n u o v a , l’u l t i m a f i n e s t r a d i d i a l o g o c o n s e n t e d i s p e c i f i c a r e u n n o m e d i t a b e l l a C o m p l e t a r e l a f i n e s t r a d i d i a l o g o e p o i f a r e c l i c s u F i n e .1 0 - S e i l p r o g r a m m a r i c h i e d e c o n f e r m a d e l l a s o v r a s c r i t t u r a d i u n a t a b e l l a e s i s t e n t e , f a r e c l i c s u S ì p e rs o v r a s c r i v e r e l a t a b e l l a e c o n t i n u a r e c o n i l p a s s o 1 0 o p p u r e f a r e c l i c s u N o p e r t o r n a r e a l p a s s o 8 .1 1 - Q u a n d o A c c e s s s e g n a l a i l c o m p l e t a m e n t o d e l l ’ i m p o r t a z i o n e o d e l c o l l e g a m e n t o d e l l a t a b e l l a , f a r e c l i c s u O K . I l n o m e d e l l a n u o v a t a b e l l a c o m p a r e n e l l a f i n e s t r a d e l d a t a b a se .

1 0 . 5 . 4 I m p o r t a r e o c o l l e g a r e f o g l i e l e t t r o n i c i

1 0 . 5 . 5 I m p o r t a r e o c o l l e g a r e f i l e d i t e s t o

U n f i l e d i t e s t o d e l i m i t a t o è u n f i l e n e l q u a l e i c a m p i s o n o s e p a r a t i d a c a r a t t e r i s p e c i a l i , c o m e , a d e s e m p i o , v i r g o l e o t a b u l a z i o n i , e c i a s c u n r e c o r d t e r m i n a c o n u n a c o m b i n a z i o n e r i t o r n o c a r r e l l o / a v a n z a m e n t o r i g a . N o r m a l m e n t e , g l i e l e m e n t i d i t e s t o s o n o r a c c h i u s i t r a v i r g o l e t t e . U n f i l e d i t e s t o d i l a r g h e z z a f i s s a è u n f i l e n e l q u a l e c i a s c u n c a m p o p o s s i e d e u n a l a r g h e z z a s p e c i f i c a t a , e c i a s c u n r e c o r d t e r m i n a c o n u n a c o m b i n a z i o n e r i t o r n o c a r r e l l o / a v a n z a m e n t o r i g a . P r i m a d e l l ’ i m p o r t a z i o n e o d e l c o l l e g a m e n t o d i u n f i l e d i t e s t o , c o n t r o l l a r ec h e s i a o r g a n i z z a t o i n m o d o c h e c i a s c u n c a m p o c o n t e n g a l o s t e s s o t i p o d i d a t i e i n c i a s c u n a r i g a c o m p a i a n o g l i s t e s s i c a m p i . L a p r i m a r i g a p u ò c o n t e n e r e i n o m i d i c a m p o c h e s i d e s i d e r a c h e A c c e s s u t i l i z z i n e l l a c r e a z i o n e d e l l a t a b e l l a .

È p o s s i b i l e i m p o r t a r e o c o l l e g a r e i n t a b e l l e d i A c c e s s i s e g u e n t i f o r m a t i d i f o g l i e l e t t r o n i c i e f i l e d i t e s t o :

N e l l ’ i m p o r t a z i o n e d i f i l e d i t e s t o , s i p u ò c r e a r e u n a n u o v a t a b e l l a o a c c o d a r e i d a t i a u n a t a b e l l a e s i s t e n t e . S e i l f o g l i o e l e t t r o n i c o o i l f i l e d i t e s t o c o n t i e n e n o m i d i c a m p i n e ll a p r i m a r i g a , A c c e s s p u ò u t i l i z z a r l i c o m e n o m i d i c a m p o d e l l a t a b e l l a .

1 0 . 5 . 3 I m p o r t a r e o c o l l e g a r e f o g l i e l e t t r o n i c i e f i l e d i t e s t o

• M i c r o s o f t E x c e l v e r s i o n i 2 , 3 , 4 e 5 , E x c e l 9 5 e d E x c e l 9 7 .• L o t u s 1- 2- 3 o 1- 2-3 p e r W i n d o w s ( f i l e . w k 1 , . w k 3 e . w k 4 ) . I f i l e L o t u s c o l l e g a t i s o n o a s o l a l e t t u r a .• T e s t o d e l i m i t a t o ( v a l o r i s e p a r a t i d a v i r g o l e , t a b u l a z i o n i o d a a l t r i c a r a t t e r i ) .• T e s t o d i l a r g h e z z a f i s s a , i n c l u s a U n i o n e d i M i c r o s o f t W o r d ( c i a s c u n c a m p o h a u n a l a r g h e z z a f i s s a ) .

Page 12: Microsoft Office Access 2003 - Manuale (Italiano)[1]

12/32

©© 20032003

I l p r o c e d i m e n t o p e r l’ i m p o r t a z i o n e o i l c o l l e g a m e n t o d i f i l e d i t e s t o è c o n t r o l l a t o d a u n ’ A u t o c o m p o s i z i o n e , f a c i l e d a u t i l i z z a r e .1 - I n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e d i A c c e s s , n e l q u a l e d o v r e b b e c o m p a r i r e t u t t a l a t a b e l l a , e s c e g l i e r e i l c o m a n d o I m p o r t a z i o n e o C o l l e g a m e n t o.2 - S c e g l i e r e f i l e d i t e s t o n e l l ’ e l e n c o a d i s c e s a T i p o f i l e .3 - R i n t r a c c i a r e i l f i l e d i t e s t o c h e s i v u o l e i m p o r t a r e o c o l l e g a r e e f a r e d o p p i o c l i c s u d i e s s o n e l l ’ e l e n c o a l d i s o t t o d e l l a c a s e l l a C e r c a i n . V i e n e a v v i a t a l ’ A u t o c o m p o s i z i o n e .4 - S c e g l i e r e i l f o r m a t o c h e d e s c r i v e i d a t i , s e A c c e s s n o n h a r i c on o s c i u t o i l f o r m a t o c o r r e t t o ( D e l i m i t a t o o Al a r g h e z z a f i s s a ) e f a r e c l i c s u A v a n t i .5 - I l r i s u l t a t o d i p e n d e d a l l a s c e l t a e f f e t t u a t a n e l p a s s o 4 :

6 - C o m p l e t a r e l a f i n e s t r a d i d i a l o g o e f a r e c l i c s u A v a n t i .7 - S a l t a r e a l p a s s o 8 s e s i i n t e n d e c o l l e g a r e u n f i l e d i t e s t o , o p p u r e , s e s i i n t e n d e i m p o r t a r e u n f i l e d i t e s t o , u t i l i z z a r e l a s u c c e s s i v a f i n e s t r a d i d i a l o g o p e r s c e g l i e r e s e m e m o r i z z a r e i d a t i i n u n a n u o v a t a b e l l a o p p u r e i n u n a t a b e l l a e s i s t e n t e .8 - S e s i i n t e n d e i m p o r t a r e i n u n a n u o v a t a b e l l a o p p u r e e f f e t t u a r e u n ’ o p e r a z i o n e d i c o l l e g a m e n t o , s p e c i f i c a r e p e r c i a s c u n c a m p o n o m e , i n d i c i z z a z i o n e e t i p o d a t i ; o m e t t e r e e v e n t u a l i c a m p i , s e n e c e s s a r i o . R i p e t e r e e v e n t u a l m e n t e q u e s t o p a s s o e q u i n d i f a r e c l i c s u A v a n t i .9 - S e s i s t a e f f e t t u a n d o l ’ i m p o r t a z i o n e i n u n a n u o v a t a b e l l a , s p e c i f i c a r e i l m e t o d o d i a s s e g n a z i o n e d e l l a c h i a v e p r i m a r i a . P e r c o n t i n u a r e , c l i c c a r e s u A v a n t i . L ’ u l t i m a f i n e s t r a c o n s e n t e d i s p e c i f i c a r e u n n o m e d i t a b e l l a .1 0 - C o m p l e t a r e q u e s t a f i n e s t r a d i d i a l o g o e f a r e c l i c s u F i n e .1 1 - S e i l p r o g r a m m a r i c h i e d e c o n f e r m a d e l l a s o v r a s c r i t t u r a d i u n a t a b e l l a e s i s t e n t e , f a r e c l i c s u S ì p e rs o v r a s c r i v e r e l a t a b e l l a e c o n t i n u a r e c o n i l p a s s o 1 2 o p p u r e f a r e c l i c s u N o e t o r n a r e a l p a s s o 1 0 .1 2 - F a r e c l i c s u O K q u a n d o A c c e s s s e g n a l a l a f i n e d e l l ’ i m p o r t a z i o n e o d e l c o l l e g a m e n t o d e l l a t a b e l l a . I l n o m e d e l l a n u o v a t a b e l l a v i e n e v i s u a l i z z a t o n e l l a f i n e s t r a d e l d a t a b a s e .

A c c e s s p r e s e n t a u n a n u o v a f u n z i o n e c h e c o n s e n t e l ’ i m p o r t a z i o n e o i l c o l l e g a m e n t o d i f i l e H T M L ( H y p e r T e x tM a r k u p L a n g u a g e , l i n g u a g g i o d i a n n o t a z i o n e i p e r t e s t u a l e ) c o n u n d a t a b a s e d i A c c e s s . H T M L è l a c o d i f i c a s p e c i a l e u t i l i z z a t a p e r f a r e r i f e r i m e n t o a i f i l e g r a f i c i e p e r la f o r m a t t a z i o n e d e i f i l e p u b b l i c a t i i n I n t e r n e t . I f i l e p o s s o n o e s s e r e i n f o r m a t o h t m , h t m l o h t x. L a v e r s i o n e 1 . 0 è s u p p o r t a t a p e r i f i l e d i e l e n c o H T M L , m e n t r e l e v e r s i o n i 2 . 0 e 3 . x p e r e l e n c h i o t a b e l l e H T M L . P e r i m p o r t a r e o c o l l e g a r e u n f i l e H T M L :1 - I n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e d i A c c e s s n e l l a q u a l e d o v r à a p p a r i r e l a t a b e l l a i m p o r t a t a o c o l l e g a t a e s c e g l i e r e i l c o m a n d o I m p o r t a o C o l l e g a .2 - S c e g l i e r e F i l e H T M L n e l l ’ e l e n c o a d i s c e s a T i p o f i l e .3 - R i n t r a c c i a r e i l f i l e c h e s i d e s i d e r a i m p o r t a r e o c o l l e g a r e e f a r e d o p p i o c l i c s u d i e s s o n e l l ’ e l e n c o a l d i s o t t o d e l l a c a s e l l a C e r c a i n , i n m o d o d a a v v i a r e l ’ A u t o c o m p o s i z i o n e i m p o r t a z i o n e H T M L . L a p r i m a f i n e s t r a d i d i a l o g o v i s u a l i z z a i d a t i a l l o s t e s s o m o d o d e l l ’ A u t o c o m p o s i z i o n e I m p o r t a z i o n e F o g l i o d i c a l c o l o . L a u n i c a d i f f e r e n z a c o n s i s t e n e l t i t o l o d e l l a f i n e s t r a d i d i a l o g o .4 - A t t i v a r e l ’ o p z i o n e L a p r i m a r i g a c o n t i e n e l e i n t e s t a z i o n i d i c o l o n n a s e A c c e s s p u ò t r o v a r e i n o m i d i c a m p o n e l f i l e H T M L . Q u i n d i f a r e c l i c s u A v a n t i .5 - S e s i s t a e f f e t t u a n d o u n ’ i m p o r t a z i o n e , s c e g l i e r e s e c r e a r e u n a n u o v a t a b e l l a o a c c o d a r e i r e c o r d a u n a t a b e l l a e s i s t e n t e . I n q u e s t ’u l t i m o c a s o , f a r e c l i c s u l l ’ o p z i o n e I n u n a t a b e l l a e s i s t e n t e e s c e g l i e r e u n a t a b e l l a p r i m a d i f a r e c l i c s u A v a n t i .6 - S e s i i n t e n d e e f f e t t u a r e l’ i m p o r t a z i o n e o i l c o l l e g a m e n t o i n u n a n u o v a t a b e l l a , s p e c i f i c a r e n o m e c a m p o , i n d i c i z z a z i o n e e t i p o d a t i d i c i a s c u n c a m p o e , s e n e c e s s a r i o , s al t a r e a l c u n i c a m p i . R i p e t e r e q u e s t o p a s s o , s e n e c e s s a r i o , q u i n d i f a r e c l i c s u A v a n t i .7 - S e s i i n t e n d e e f f e t t u a r e l’ i m p o r t a z i o n e i n u n a n u o v a t a b e l l a , s p e c i f i c a r e c o m e A c c e s s d e v e a s s e g n a r e l a c h i a v e p r i m a r i a . F a r e c l i c s u A v a n t i p e r c o n t i n u a r e . L a f i n e s t r a d i d i a l o g o f i n a l e c o n s e n t e d i s p e c if i c a r e u n n o m e d i t a b e l l a .8 - C o m p l e t a r e l a f i n e s t r a e f a r e c l i c s u F i n e .9 - S e i l p r o g r a m m a r i c h i e d e c o n f e r m a p e r s o v r a s c r i v e r e u n a t a b e l l a e s i s t e n t e , f a r e c l i c s u S ì p e r s o v r a s c r i v e r el a t a b e l l a e c o n t i n u a r e c o n i l p a s s o 1 0 o p p u r e f a r e c l i c s u N o e t o r n a r e a l p a s s o 8 .1 0 - Q u a n d o A c c e s s s e g n a l a i l c o m p l e t a m e n t o d e l l ’ i m p o r t a z i o n e o d e l c o l l e g a m e n t o d e l l a t a b e l l a , f a r e c l i c s u O K . I l n o m e d e l l a n u o v a t a b e l l a c o m p a r e n e l l a f i n e s t r a d e l d a t a b a se .

1 0 . 5 . 6 I m p o r t a r e o c o l l e g a r e f i l e H T M L

• S e s i è s c e l t o D e l i m i t a t o, s c e g l i e r e i l d e l i m i t a t o r e c h e s e p a r a i c a m p i , s p e c i f i c a r e s e l a p r i m a r i g a d i t e s t o c o n t i e n e i n o m i d e i c a m p i , s p e c i f i c a r e i l c a r a t t e r e c h e r a c c h i u d e i l t e s t o a l l ’ i n t e r n o d e i c a m p i .• S e s i è s c e l t o F i s s o, p r o b a b i l m e n t e n o n o c c o r r e m o d i f i c a r e n e s s u n a d e l l e i m p o s t a z i o n i , m a s e o c c o r r e , l e i s t r u z i o n i d e l l a f i n e s t r a d i d i a l o g o i n d i c a n o c o m e p r o c e d e r e .

Page 13: Microsoft Office Access 2003 - Manuale (Italiano)[1]

13/32

©© 20032003

E p o s s i b i l e e s p o r t a r e d a t i d a l l e t a b e l l e d i A c c e s s n e i f o r m a t i H T M L , f i l e d i t e s t o , d i f o g l i o e l e t t r o n i c o o d i d a t a b a s e g ià e s a m i n a t i ; q u e s t a p r o c e d u r a c o n s e n t e d i t e n e r e i d a t i i n A c c e s s e u t i l i z z a r l i i n n u m e r o s i a l t r i p r o g r a m m i . È i n o l t r e p o s s i b i l e e s p o r t a r e o g g e t t i d i d a t a b a s e d i A c c e s s i n a l t r i d a t a b a s e d i A c c e s s e i n u n p r o g r a m m a d i p o s t a e l e t t r o n i c a .

1 0 . 5 . 7 E s p o r t a r e d a t i d a A c c e s s

I p a s s i f o n d a m e n t a l i p e r l ’ e s p o r t a z i o n e d i o g g e t t i s o n o s i m i l i a q u e l l i r e l a t i v i a l l ’ i m p o r t a z i o n e d i o g g e t t i :1 - I n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e c h e c o n t i e n e l’ o g g e t t o d a e s p o r t a r e . S e s i i n t e n d e e s p o r t a r e t u t t o l ’ o g g e t t o , f a r e c l i c s u l n o m e d e l l ’ o g g e t t o n e l l a f i n e s t r a d e l d a t a b a s e . S e s i i n t e n d e e s p o r t a r e r e c o r d s e l e z i o n a t i d i u n a t a b e l l a o q u e r y , a p r i r e l a t a b e l l a o e s e g u i r e l a q u e r y e s e l e z i o n a r e i r e c o r d c h e s i v o g l i o n o e s p o r t a r e .2 - S c e g l i e r e F i l e | S a l v a c o n n o m e | E s p o r t a o p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u u n ’ a r e a g r i g i a d e l l a f i n e s t r a d e l d a t a b a s e e s c e g l i e r e S a l v a c o n n o m e | E s p o r t a .3 - N e l l a s u c c e s s i v a f i n e s t r a d i d i a l o g o , a t t i v a r e l’ o p z i o n e I n u n f i l e o d a t a b a s e e s t e r n o e p o i f a r e c l i c s u O K . C o m p a r e l a f i n e s t r a d i d i a l o g o S a l v a t a b e l l a .4 - S c e g l i e r e i l f o r m a t o d i e s p o r t a z i o n e d e i d a t i n e l l ’ e l e n c o a d i s c e s a T i p o f i l e . A d e s e m p i o , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l l a c a s e l l a T i p o f i l e , f a r s c o r r e r e l ’ e l e n c o e f a r e c l i c s u R i c h T e x t F o r m a tp e r c o p i a r e l ’ o g g e t t o c o m e f i l e d i t i p o R i c h T e x t F o r m a t .5 - I n d i v i d u a r e l a c a r t e l l a c h e d e v e c o n t e n e r e i l n u o v o f i l e ; q u i n di d i g i t a r e u n n o m e d i f i l e n e l l a c a s e l l a d i t e s t o N o m e f i l e o a c c e t t a r e i l n o m e d i f i l e s u g g e r i t o d a l p r o g r a m m a .6 - S e s i è s c e l t o M i c r o s o f t E x c e l 5- 7 , F i l e d i t e s t o o p p u r e R i c h T e x t F o r m a t , s i p u ò a n c h e s c e g l i e r e u n a o p iù t r a l e o p z i o n i s e g u e n t i :

7 - F a r e c l i c s u l p u l s a n t e E s p o r t a . S e i l n o m e d i f i l e s c e l t o e s i s t e g ià , i l p r o g r a m m a r i c h i e d e s e s i v o g l i a s o s t i t u i r e i l f i l e e s i s t e n t e . F a r e c l i c s u S ì p e r s o s t i t u i r e i l f i l e e c o n t i n u a r e c o n i l p a s s o 8 o p p u r e f a r e c l i c s u N op e r l a s c i a r e i n v a r i a t o i l f i l e e t o r n a r e a l p a s s o 5 ,8 - R i s p o n d e r e a l l e e v e n t u a l i r i c h i e s t e d e l p r o g r a m m a e d e f f e t t u a r e l e s c e l t e n e l l e f i n e s t r e c h e c o m p a i o n o .A c c e s s c o p i a l ’ o g g e t t o d i d a t a b a s e n e l f o r m a t o r i c h i e s t o e s a l v a i l r i s u l t a t o n e l f i l e s c e l t o n e l p a s s o 5 . S e n e l p a s s o 6 s i è s c e l t o A v v i o a u t o m a t i c o, i l f i l e v i e n e a p e r t o n e l p r o g r a m m a a p p r o p r i a t o ( p e r t o r n a r e a ll a f i n e s t r a d e l d a t a b a s e d i A c c e s s , c l i c c a r e s u l p u l s a n t e C h i u d i d e l l a f i n e s t r a d e l p r o g r a m m a o s c e g l i e r e F i l e | C h i u d i ) .

1 0 . 5 . 8 E s p o r t a r e o g g e t t i

1 0 . 5 . 9 E s p o r t a r e i n f i l e H T M L o H T X

H T M L è i l s i s t e m a d i c o d i f i c a u t i l i z z a t o p e r p r e p a r a r e i f i l e p e r l a pu b b l i c a z i o n e i n I n t e r n e t . S p e c i a l i c o d i c i v e n g o n o u t i l i z z a t i p e r f a r e r i f e r i m e n t o a f i l e g r a f i c i c o n t e n e n t i l o g o t i p i o a l t r e i m m a g i n i , m e n t r e a l t r i c o d i c i o e t i c h e t t e d i f o r m a t o v e n g o n o u t i l i z z a t i p e r i n d i c a r e l’ a s p e t t o d e l l e i n t e s t a z i o n i e d e i p i e d i p a g i n a , l a d i m e n s i o n e d e i c a r a t t e r i , i l g r a s s e t t o e c c . U n f i l e H T X c o s t i t u i s c e u n c o m p o n e n t e d i u n a p u b b l i c a z i o n e c h e p o s s i e d e c o l l e g a m e n t i d i n a m i c i a u n d a t a b a s e . I n u n ’ e s p o r t a z i o n e i n f o r m a t o H T X , A c c e s s c r e a d u e f i l e : u n f i l e . h t x c h e f a r i f e r i m e n t o a u n m o d e l l o H T M L e u n f i l e .i d c c h e i n c l u d e i n f o r m a z i o n i s u l l a c o n n e s s i o n e c o n l ’ o r i g i n e d a t i O D B C c h e c o n t i e n e i d a t i d a p u b b l i c a r e . P e r e s p o r t a r e u n a t a b e l l a o q u e r y d i A c c e s s i n u n f i l e H T M L o H T X :1 - S e g u i r e i p a s s i d a 1 a 3 d e l l a p r o c e d u r a g e n e r a l e E s p o r t a r e o g g e t t o ( s e n o n è n e c e s s a r i o m o d i f i c a r e l e i m p o s t a z i o n i d i p u b b l i c a z i o n e p r e d e f i n i t e , s e l e z i o n a r e l a t a b e l l a c h e s i d e s i d e r a e s p o r t a r e n e l l a f i n e s t r a d e l d a t a b a s e . Q u i n d i u t i l i z z a r e i c o m a n d i F i l e | S a l v a c o m e H T M L ; v i e n e a v v i a t a l ’ A u t o c o m p o s i z i o n eP u b b l i c a z i o n e s u l W e b , n e l l a q u a l e s i p o t r a n n o s c e g l i e r e i f o r m at i H T M L s t a t i c o ; H T X / I D C d i n a m i c o( M i c r o s o f t I n t e r n e t I n f o r m a t i o n S e r v e r ) o p p u r e A S P d i n a m i c o ( M i c r o s o f t A c t i v e S e r v e r P a g e s ) .2 - S p e c i f i c a r e u n n o m e p e r i l n u o v o f i l e .3 - S e s i è s c e l t o i l f o r m a t o H T X , A c c e s s v i s u a l i z z a l a f i n e s t r a d i d i a l o g o p e r l e i m p o s t a z i o n i d i p u b b l i c a z i o n e p r e d e f i n i t e . U t i l i z z a r e i l M o d e l l o H T M L p e r s c e g l i e r e u n f i l e m o d e l l o c h e p u ò c o n t e n e r e l e s p e c i f i c h e r e l a t i v e a u n l o g o t i p o o a d e t e r m i n a t i t i p i d i i n t e s t a z i o n i e p i e d i p a g i n a . L a c a s e l l a N o m e o r i g i n e d a t i è i l p o s t o i n c u i l ’u t e n t e i m m e t t e u n a c o n n e s s i o n e O D B C u t i l i z z a t a p e r o t t e n e r e i d a t i p e r l e p a g i n e W e b d i n a m i c h e . N e l l a c a s e l l a N o m e u t e n t e s i i m m e t t e i l n o m e d e l l ’u t e n t e , m e n t r e n e l l a c a s e l l a P a s s w o r d s i i m m e t t e l a p a s s w o r d r i c h i e s t a p e r c o l l e g a r s i a l l ’ o r i g i n e d a t i O D B C . P r o c e d e r e c o n l ’ e s p o r t a z i o n e .

• S a l v a f o r m a t t a t o - A t t i v a r e q u e s t a o p z i o n e ( s e d i s p o n i b i l e ) p e r s a l v a r e i d a t i e s p o r t a t i c o n t u t t a l a f o r m a t t a z i o n e p o s s i b i l e ; d i s a t t i v a r e q u e s t a o p z i o n e p e r o m e t t e r e l a f o r m a t t a z i o n e d e i d a t i e s p o r t a t i .• A v v i o a u t o m a t i c o - A t t i v a r e q u e s t a o p z i o n e p e r a p r i r e i m m e d i a t a m e n t e i l f i l e e s p o rt a t o i n m o d o d a e s a m i n a r l o n e l p r o g r a m m a a p p r o p r i a t o .• T u t t o o S e l e z i o n e - S c e g l i e r e T u t t o p e r s a l v a r e t u t t o i l f i l e o S e l e z i o n e p e r s a l v a r e i r e c o r d s e l e z i o n a t i n e l p a s s o 1 .

Page 14: Microsoft Office Access 2003 - Manuale (Italiano)[1]

14/32

©© 20032003

L a b a r r a d e g l i s t r u m e n t i F o r m a t t a z i o n e ( f o g l i o d a t i ) , c o n s e n t e di m o d i f i c a r e l’ a s p e t t o d e l t e s t o d e l f o g l i o d a t i , s c e g l i e r e u n c o l o r e p e r s f o n d o , p r i m o p i a n o e g r i g l i a d e l f o g l i o d a t i , o l t r e a c o n t r o l l a r e l’ a s p e t t o d e l l e l i n e e d e l l a g r i g l i a . P e r u t i l i z z a r e q u e s t a b a r r a d e g l i s t r u m e n t i , o c c or r e ( o v v i a m e n t e ) v i s u a l i z z a r l a p r i m a s u l l o s c h e r m o . E c c o c o m e :

1 0 . 6 . 2 La barra degli strumenti Formattazione

N e i c a p i t o l i p r e c e d e n t i s i è v i s t o c o m e a p r i r e u n d a t a b a s e , c r e a r e e a p r i r e t a b e l l e e i m p o r t a r e o c o l l e g a r e t a b e l l e d a a l t r e o r i g i n i . I n q u e s t o c a p i t o l o s i v e d rà c o m e a g g i u n g e r e , m o d i f i c a r e e c a n c e l l a r e d a t i n e l l e t a b e l l e . C on A c c e s s è p o s s i b i l e l a v o r a r e i n V i s u a l i z z a z i o n e F o g l i o d a t i ( o V i s u a l i z z a z i o n e t a b e l l a) , n e l l a q u a l e v e n g o n o v i s u a l i z z a t i s u l l o s c h e r m o p iù r e c o r d p e r v o l t a , o V i s u a l i z z a z i o n e M a s c h e r a , n e l l a q u a l e s i p u ò v e d e r e u n s o l o r e c o r d p e r v o l t a . N o r m a l m e n t e , a l l ’ a p e r t u r a d i u n a t a b e l l a c i s i t r o v a i n V i s u a l i z z a z i o n e F o g l i o d a t i . S e s i d e s i d e r a u t i l i z z a r e l a V i s u a l i z z a z i o n e M a s c h e r a , s i d e v e c r e a r e u n a m a s c h e r a o u t i l i z z a r e u n a m a s c h e r a e s i s t e n t e . P e r v i s u a l i z z a r e i d a t i i n V i s u a l i z z a z i o n e F o g l i o d a t i , f a r e c l i c s u l l a s c h e d a T a b e l l e o Q u e r y n e l l a f i n e s t r a d e l d a t a b a s e . Q u i n d i f a r e d o p p i o c l i c s u l l a t a b e l l a o q u e r y d e l l a q u a l e s i v o g l i o n o v e d e r e i d a t i . O p p u r e , f a r e c l i c s u l n o m e d e l l a t a b e l l a o q u e r y e p o i s u l p u l s a n t e A p r i n e l l a f i n e s t r a d e l d a t a b a s e . O p p u r e a n c o r a , c l i c c a r e c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l l a t a b e l l a o q u e r y e s c e g l i e r e A p r i . P e r v i s u a l i z z a r e i d a t i i n V i s u a l i z z a z i o n e M a s c h e r a , c l i c c a r e s u l l a s c h e d a M a s c h e r e n e l l a f i n e s t r a d e l d a t a b a s e e p o i f a r e d o p p i o c l i c s u l l a m a s c h e r a c h e s i d e s i d e r a a p r i r e . O p p u r e , c l i c c a r e s u l n o m e d e l l a m a s c h e r a e p o i s u A p r i n e l l a f i n e s t r a d e l d a t a b a s e . O p p u r e a n c o r a , c l i c c a r e c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l l a m a s c h e r a e s c e g l i e r e A p r i . Q u a n d o s i a p r e u n a m a s c h e r a , è p o s s i b i l e p a s s a r e f a c i l m e n t e d a u n a v i s u a l i z z a z i o n e a l l ’ a l t r a . A q u e s t o s c o p o , c l i c c a r e s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e V i s u a l i z z a d e l l a b a r r a d e g l i s t r u m e n t i ; q u i n d i s c e g l i e r e u n ’ o p z i o n e n e l m e n u ( V i s u a l i z z a z i o n e S t r u t t u r a , V i s u a l i z z a z i o n e M a s c h e r a o V i s u a l i z z a z i o n e F o g l i o d a t i ) . O p p u r e , s c e g l i e r e l ’ o p z i o n e a p p r o p r i a t a n e l m e n u V i s u a l i z z a ( S t r u t t u r a m a s c h e r a , M a s c h e r a o F o g l i o d a t i ) .

10 .6 Aggiungere , modif icare e v isual izzare i da t i

L a p e r s o n a l i z z a z i o n e d e l l a V i s u a l i z z a z i o n e F o g l i o d a t i p u ò r a p p r e s e n t a r e u n m e t o d o f a c i l e e r a p i d o p e r v i s u a l i z z a r e e s t a m p a r e u n e l e n c o d e i d a t i c o n t e n u t i i n u n a t a b e l l a . E p o s s i b i l e u t i l i z z a r e u n a b a r r a d e g l i s t r u m e n t i F o r m a t t a z i o n e e c o m a n d i d i m e n u s p e c i a l i , i n o l t r e , f a ce n d o c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e , s i p u ò m o d i f i c a r e i n u n a t t i m o l ’ a s p e t t o d i u n a V i s u a l i z z a z i o n e F o g l i o d a t i .

1 0 . 6 . 1 Personalizzazione della Visualizzazione Foglio dati

• Se si è i n V i s u a l i z z a z i o n e F o g l i o d a t i : f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l l a b a r r a d e g l i s t r u m e n t i c o r r e n t e e s e l e z i o n a r e ( c o m p a r e u n s e g n o d i s p u n t a ) F o r m a t t a z i o n e ( f o g l i o d a t i ) .• S e n o n è v i s i b i l e n e s s u n a b a r r a d e g l i s t r u m e n t i , s c e g l i e r e V i s u a l i z z a | B a r r e d e g l i s t r u m e n t i | P e r s o n a l i z z a . N e l l a f i n e s t r a d i d i a l o g o P e r s o n a l i z z a ( s c h e d a B a r r e d e g l i s t r u m e n t i ) , s e l e z i o n a r e ( i n s e r i r e u n s e g n o d i s p u n t a n e l l a c a s e l l a a s i n i s t r a ) F o r m a t t a z i o n e ( f o g l i o d a t i ) .Q u a n d o l a b a r r a d e g l i s t r u m e n t i F o r m a t t a z i o n e è v i s i b i l e , è p o s s i b i l e u t i l i z z a r l a :• P e r p o r t a r s i r a p i d a m e n t e i n u n a c o l o n n a p a r t i c o l a r e d e l r e c o r d s e l e z i o n a t o a l m o m e n t o , s c e g l i e r e u n n o m e d i c o l o n n a ( c a m p o ) n e l l ’ e l e n c o a d i s c e s a d e l l a c a s e l l a V a i a c a m p o .• P e r m o d i f i c a r e i l t i p o d i c a r a t t e r e p e r t u t t o i l t e s t o d e l l a V i s u a l i z z a z i o n e F o g l i o d a t i , s c e g l i e r e u n n o m e d i c a r a t t e r e n e l l ’ e l e n c o a d i s c e s a T i p o d i c a r a t t e r e .• P e r m o d i f i c a r e l a d i m e n s i o n e d e l c a r a t t e r e p e r t u t t o i l t e s t o d el l a V i s u a l i z z a z i o n e F o g l i o d a t i , s c e g l i e r e u n a d i m e n s i o n e d i c a r a t t e r e n e l l ’ e l e n c o a d i s c e s a D i m e n s i o n e c a r a t t e r e .• P e r c o n v e r t i r e i n c a r a t t e r e g r a s s e t t o t u t t o i l t e s t o d e l l a V i s u a l i z z a z i o n e F o g l i o d a t i , f a r e c l i c s u l p u l s a n t e G r a s s e t t o ( G ) . P e r d i s a t t i v a r e i l g r a s s e t t o , f a r e c l i c d i n u o v o s u l p u l s a n t e G r a s s e t t o . U t i l i z z a r e q u e s t a s t e s s a t e c n i c a c o n i l C o r s i v o e i l S o t t o l i n e a t o , p e r a t t i v a r e o d i s a t t iv a r e i l c a r a t t e r e C o r s i v o e S o t t o l i n e a t o .• P e r m o d i f i c a r e i l c o l o r e d i s f o n d o d e l l a V i s u a l i z z a z i o n e F o g l i o d a t i , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e C o l o r e r i e m p i m e n t o / s f o n d o e p o i f ar e c l i c s u l c o l o r e d e s i d e r a t o . U t i l i z z a r e q u e s t a s t e s s a t e c n i c a c o n i p u l s a n t i C o l o r e c a r a t t e r e / p r i m o p i a n o e C o l o r e l i n e a / b o r d o , p e r s c e g l i e r e , r i s p e t t i v a m e n t e , i c o l o r i d e l p r i m o p i a n o ( t e s t o ) e d e l l e l i n e e d e l l a g r i g l i a .• P e r c a m b i a r e l ’ a s p e t t o d e l l e l i n e e d e l l a g r i g l i a , c l i c c a r e s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e G r i g l i a c o m p l e t a e q u i n d i f a r e c l i c s u l l ’ i m m a g i n e c h e v i s u a l i z z a i l t i p o d i g r i g l i a d e s i d e r a t o . U t i l i z z a r e l a s t e s s a t e c n i c a c o l p u l s a n t e E f f e t t i s p e c i a l i p e r a g g i u n g e r e a l l a g r i g l i a u n e f f e t t o p i a t t o , i n r i l i e v o o i n c a s s a t o .

Page 15: Microsoft Office Access 2003 - Manuale (Italiano)[1]

15/32

©© 20032003

I n V i s u a l i z z a z i o n e F o g l i o d a t i è p o s s i b i l e r i o r g a n i z z a r e l e c o l o n n e d e l f o g l i o d a t i , r e g o l a r e l ’ a l t e z z a d e l l e r i g h e , l a l a r g h e z z a d e l l e c o l o n n e e a n c h e n a s c o n d e r e d e l l e c o l o n n e . S e l e z i o n a r e l e c o l o n n e c o n c u i l a v o r a r e e q u i n d i :

S e l a t a b e l l a è p iù a m p i a d e l l o s c h e r m o , l o s c o r r i m e n t o v e r s o l e u l t i m e c o l o n n e a de s t r a a v r à p e r e f f e t t o l a s c o m p a r s a d e l l e p r i m e c o l o n n e a s i n i s t r a . A n z i c hé s c o r r e r e a v a n t i e i n d i e t r o p e r c o n t r o l l a r e i l r e c o r d s u c u i s i t r o v a i l c u r s o r e , s i p u ò b l o c c a r e u n a o p i ù c o l o n n e i n m o d o d a m a n t e n e r l e s e m p r e v i s i b i l i . P e r b l o c c a r e u n a o p iù c o l o n n e , s e l e z i o n a r e l a c o l o n n a o l e c o l o n n e c h e s i v o g l i o n o b l o c c a r e , s c e g l i e r e F o r m a t o | B l o c c a c o l o n n eo p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u u n q u a l s i a s i d a t o e n t r o l a s e l e z i o n e e q u i n d i s c e g l i e r e B l o c c a c o l o n n e n e l m e n u d i s c e l t a r a p i d a . L e c o l o n n e s e l e z i o n a t e s i s p o s t a n o a u t o m a t i c a m e n t e n e l l e p o s i z i o n i più a s i n i s t r a d e l f o g l i o d a t i e r i m a n g o n o v i s i b i l i m e n t r e s i f a n n o s c o r r e r e v e r s o d e s t r a l e a l t r e c o l o n n e d e l f o g l i o d a t i . U n a l i n e a v e r t i c a l e s p e s s a s e p a r a l e c o l o n n e b l o c c a t e d a q u e l l e n o n b l o c c a t e . P e r s b l o c c a r e l e c o l o n n e , s c e g l i e r e i l c o m a n d o F o r m a t o | S b l o c c a t u t t e l e c o l o n n e .

1 0 . 6 . 3 Come bloccare e sbloccare colonne

S e l’ u t e n t e h a p e r s o n a l i z z a t o l a v i s u a l i z z a z i o n e d e l f o g l i o d a t i , a l l a c h i u s u r a d e l l a t a b e l l a , i l p r o g r a m m a r i c h i e d e s e s i v o g l i o n o s a l v a r e l e m o d i f i c h e a l l a d i s p o s i z i o n e . P e r m a n t e n e r e l e i m p o s t a z i o n i p e r s o n a l i z z a t e p e r l e s u c c e s s i v e s e s s i o n i , c l i c c a r e s u S ì . P e r a n n u l l a r e l e i m p o s t a z i o n i , s u N o. È p o s s i b i l e s a l v a r e i n q u a l s i a s i m o m e n t o a n c h e l e m o d i f i c h e a l l a d i s p o s i z i o n e d e l f o g l i o d a t i . A q u e s t o s c o p o , s c e g l i e r e i l c o m a n d o F i l e | S a l v a o p r e m e r e C t r l + S o p p u r e f a r e c l i c s u l p u l s a n t e S a l v a d e l l a b a r r a d e g l i s t r u m e n t i F o g l i o d a t i t a b e l l a .

1 0 . 6 . 4 Salvare o annullare le modifiche apportate al foglio dati

P e r s p o s t a r s i a l l ’ i n t e r n o d i u n a t a b e l l a , s i p u ò u t i l i z z a r e u n a q u a l s i a s i d e l l e t e c n i c h e s e g u e n t i .

1 0 . 6 . 5 Come spostarsi nelle maschere e nei fogli dati

• P e r s e l e z i o n a r e u n a c o l o n n a , f a r e c l i c s u l s e l e t t o r e d i c a m p o n e l l a p a r t e s u p e r i o r e d e l l a c o l o n n a .• P e r s e l e z i o n a r e p i ù c o l o n n e , t r a s c i n a r e i l p u n t a t o r e d e l m o u s e s u i s e l e t t o r i d i c a m p o . o c l i c c a r e s u l s e l e t t o r e d e l l a p r i m a c o l o n n a c h e s i v u o l e s e l e z i o n a r e . Q u i n d i , s e o c c o r r e, u t i l i z z a r e l a b a r r a d i s c o r r i m e n t o o r i z z o n t a l e e , t e n e n d o p r e m u t o i l t a s t o S h i f t , c l i c c a r e s u l s e l et t o r e d i c a m p o d e l l ’ u l t i m a c o l o n n a c h e s i d e s i d e r a s e l e z i o n a r e .• P e r d e s e l e z i o n a r e c o l o n n e g i à s e l e z i o n a t e , f a r e c l i c n e l l ’ a r e a d a t i d i u n a q u a l s i a s i c o l o n n a .• P e r m o d i f i c a r e l’ a l t e z z a d i t u t t e l e r i g h e , t r a s c i n a r e i l b o r d o i n f e r i o r e d i u n s e l e t t o r e d i r i g a v e r s o l’ a l t o o v e r s o i l b a s s o . O p p u r e , s c e g l i e r e i l c o m a n d o F o r m a t o | A l t e z z a r i g h e o p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u u n s e l e t t o r e d i r i g a e s c e g l i e r e A l t e z z a r i g h e ; q u in d i i m m e t t e r e u n ’ a l t e z z a ( i n p u n t i ) o p p u r e a t t i v a r e l a c a s e l l a d i c o n t r o l l o A l t e z z a s t a n d a r d p e r u t i l i z z a r e l ’ a l t e z z a s t a n d a r d d i A c c e s s e f a r e c l i c s u O K .• P e r m o d i f i c a r e l a l a r g h e z z a d i u n a c o l o n n a , t r a s c i n a r e l a b a r r a v e r t i c a l e a c c a n t o a l s e l e t t o r e d i c a m p o d i q u e l l a c o l o n n a v e r s o d e s t r a o v e r s o s i n i s t r a . O p p u r e , p e r o t t e n e r e r a p i d a m e n t e l ’ a d a t t a m e n t o o t t i m a l e d e l l a c o l o n n a , f a r e d o p p i o c l i c s u l l a b a r r a v e r t i c a l e .• P e r m o d i f i c a r e l a l a r g h e z z a d i u n a o p i ù c o l o n n e a d i a c e n t i , s e l e z i o n a r e l a c o l o n n a o l e c o l o n n e d i c u i si v u o l e m o d i f i c a r e l a d i m e n s i o n e . Q u i n d i , s c e g l i e r e i l c o m a n d o F o r m a t o | L a r g h e z z a c o l o n n e o p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u q u a l s i a s i d a t o e n t r o l a s e l e z i o n e e s c e g l i e r e L a r g h e z z a c o l o n n e .• N e l l a f i n e s t r a d i d i a l o g o L a r g h e z z a c o l o n n e , i m m e t t e r e u n a l a r g h e z z a ( i n n u m e r o d i c a r a t t e r i ) o a t t i v a r e l a c a s e l l a d i c o n t r o l l o L a r g h e z z a s t a n d a r d e p o i c l i c c a r e s u O K o s u A d a t t a . I n a l t e r n a t i v a , t r a s c i n a r e v e r s o d e s t r a o v e r s o s i n i s t r a l a b a r r a v e r t i c a l e a c c a n t o a l s e l e t t o r e d i c a m p o d i u n a c o l o n n a .• P e r s p o s t a r e u n a o p iù c o l o n n e , s e l e z i o n a r e l a c o l o n n a o l e c o l o n n e d a s p o s t a r e . Q u i n d i , f a r e c l i c s u u n o d e i s e l e t t o r i d i c a m p o e v i d e n z i a t i e t r a s c i n a r e l a s e l e z i o n e v e r s o d e s t r a o v e r s o s i n i s t r a .• P e r n a s c o n d e r e a l c u n e c o l o n n e , s e l e z i o n a r e l a c o l o n n a o l e c o l o n n e d a n a s c o n d e r e . Q u i n d i , s c e g l i e r e i l c o m a n d o F o r m a t o | N a s c o n d i c o l o n n e o p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u u n q u a l s i a s i d a t o e n t r o l a s e l e z i o n e e s c e g l i e r e N a s c o n d i c o l o n n e .• P e r n a s c o n d e r e o v i s u a l i z z a r e d i n u o v o a l c u n e c o l o n n e , s c e g l i e r e i l c o m a n d o F o r m a t o | S c o p r i c o l o n n e . S e l e z i o n a r e i n o m i d e l l e c o l o n n e c h e s i d e s i d e r a n o s c o p r i r e , d e s e l e z i o n a r e q u e l l e c h e s i v o g l i o n o n a s c o n d e r e e f a r e c l i c s u C h i u d i .

• P e r s p o s t a r s i t r a i r e c o r d , u t i l i z z a r e i p u l s a n t i d e l l a p a r t e in f e r i o r e d e l l a m a s c h e r a o d e l l a f i n e s t r a d e l f o g l i o d a t i . O p p u r e , s c e g l i e r e i l c o m a n d o M o d i f i c a | V a i a e s c e g l i e r e i l c o m a n d o a p p r o p r i a t o n e l m e n u a d i s c e s a . L e o p z i o n i d e l c o m a n d o V a i a s o n o P r i m o , U l t i m o , S u c c e s s i v o , P r e c e d e n t e e N u o v o r e c o r d .• P e r s p o s t a r s i t r a i r e c o r d i n V i s u a l i z z a z i o n e F o g l i o d a t i , u t i l i z z a r e l a b a r r a d i s c o r r i m e n t o v e r t i c a l e s u l l a t o d e s t r o d e l l a f i n e s t r a . M e n t r e s i t r a s c i n a l a c a s e l l a d i s c or r i m e n t o , a c c a n t o a l l a b a r r a d i s c o r r i m e n t o c o m p a i o n o i l n u m e r o d e l r e c o r d c o r r e n t e e i l t o t a l e d e i r e c o r d .• P e r s p o s t a r s i t r a l e c o l o n n e i n V i s u a l i z z a z i o n e F o g l i o d a t i , u t i l i z z a r e l a b a r r a d i s c o r r i m e n t o o r i z z o n t a l e p o s t a s u l b o r d o i n f e r i o r e d e l l a f i n e s t r a .• P e r v i s u a l i z z a r e u l t e r i o r i c a m p i i n V i s u a l i z z a z i o n e m a s c h e r a , u t i l i z z a r e l a b a r r a d i s c o r r i m e n t o v e r t i c a l e s u l b o r d o d e s t r o d e l l a f i n e s t r a o p p u r e l a b a r r a d i s c o r r i m e n t o o r i z z o n t a l e s u l b o r d o i n f e r i o r e d e l l a f i n e s t r a .• P e r r a g g i u n g e r e u n r e c o r d p a r t i c o l a r e i n b a s e a l c o n t e n u t o d i u n c a m p o , s i p u ò u t i l i z z a r e i l p u l s a n t e T r o v a .

Page 16: Microsoft Office Access 2003 - Manuale (Italiano)[1]

16/32

©© 20032003

P e r a g g i u n g e r e d a t i i n u n a t a b e l l a , p o r t a r s i s u u n n u o v o r e c o r d e d i g i t a r e i l c o n t e n u t o d i c i a s c u n c a m p o . C o m p l e t a t o u n c a m p o , p e r s p o s t a r s i a l c a m p o s u c c e s s i v o , p r e m e r e I n v i o o T a b . O p p u r e , f a r e c l i c s u l c a m p o n e l q u a l e s i v o g l i o n o a g g i u n g e r e d a t i . S e g u i r e q u e s t i p a s s i :1 - A p r i r e l a t a b e l l a i n V i s u a l i z z a z i o n e F o g l i o d a t i o p p u r e a p r i r e l a m a s c h e r a i n V i s u a l i z z a z i o n e M a s c h e r a . Q u i n d i , s e i l c u r s o r e n o n s i t r o v a g i à i n u n r e c o r d v u o t o , p e r p o r t a r s i a u n n u o v o r e c o r d , u t i l i z z a r e u n a q u a l s i a s i d e l l e t e c n i c h e s e g u e n t i :

2 - D i g i t a r e i l c o n t e n u t o d e l c a m p o c o r r e n t e ( c a m p o n e l q u a l e s i t r o v a i l c u r s o r e ) . Q u i n d i , p r e m e r e i l t a s t o T a bo I n v i o p e r s p o s t a r s i a l c a m p o s u c c e s s i v o o p p u r e f a r e c l i c s u l s u c c e s s i v o c a m p o n e l q u a l e s i d e s i d e r a n o i m m e t t e r e d a t i .3 - R i p e t e r e i l p a s s o 2 f i n o a c h e n o n s i è c o m p l e t a t a l ’ i m m i s s i o n e d i d a t i n e l r e c o r d .C o m p l e t a t o l ’ u l t i m o c a m p o d i u n r e c o r d , s i p u ò p r e m e r e i l t a s t o T a b o I n v i o p e r p o r t a r s i a l s u c c e s s i v o r e c o r d v u o t o . S e n o n s i v u o l e a g g i u n g e r e u n a l t r o r e c o r d , c h i u d e r e l a ta b e l l a o m a s c h e r a ( o p p u r e p a s s a r e a l r e c o r d p r e c e d e n t e ) . A c c e s s s a l v a s u d i s c o l ’ i n t e r o r e c o r d , a p p e n a s i p a s s a a u n a l t r o r e c o r d . T u t t a v i a s e u n r e c o r d n o n p u ò e s s e r e s a l v a t o p e r c h é n o n h a s u p e r a t o i c o n t r o l l i d i v a l i d i t à , i l p r o g r a m m a v i s u a l i z z a u n m e s s a g g i o d i e r r o r e c o n l a d e s c r i z i o n e d e l p r o b l e m a .

1 0 . 6 . 6 Aggiungere dati a una tabella

D u r a n t e l ’ a g g i u n t a o l a m o d i f i c a d e i d a t i c o n t e n u t i i n u n a t a b e l l a , s u l l at o s i n i s t r o d e l l a f i n e s t r a V i s u a l i z z a z i o n e F o g l i o d a t i o V i s u a l i z z a z i o n e M a s c h e r a c o m p a i o n o t r e i c o n e m i n u sc o l e ( T r i a n g o l o n e r o c h e p u n t a v e r s o d e s t r a : R e c o r d c o r r e n t e ; A s t e r i s c o : N u o v o r e c o r d , R e c o r d v u o t o ; M a t i t a i n c l i n a t a v e r s o d e s t r a : i l r e c o r d è i n c o r s o d i m o d i f i c a , l e m o d i f i c h e c o r r e n t i n o n s o n o s t a t e a n c o r a s a l v a t e ) .

1 0 . 6 . 7 Le icone minuscole

M o d i f i c a r e i d a t i d i u n a t a b e l l a è s e m p l i c e . È s u f f i c i e n t e p o r t a r e i l c u r s o r e s u i d a t i c h e s i d e s i d e r a m o d i f i c a r e e q u i n d i u t i l i z z a r e l e t e c n i c h e s t a n d a r d d i m o d i f i c a d e l t e s t o . È i m p o r t a n t e , t u t t a v i a , p r i m a d i e f f e t t u a r e u n a m o d i f i c a , c o n t r o l l a r e l o s c h e r m o p e r v e d e r e s e i l c o n t e n u t o d e l c a m p o è e v i d e n z i a t o :

1 0 . 6 . 8 Modifica dei dati di una tabella

P e r c a n c e l l a r e i d a t i a l l ’ i n t e r n o d i u n c a m p o :

S e s i c a m b i a i d e a e s i v u o l e r i p r i s t i n a r e i l t e s t o s e l e z i o n a t o , p r e m e r e E s c o c l i c c a r e s u l p u l s a n t e A n n u l l a d e l l a b a r r a d e g l i s t r u m e n t i . O p p u r e , s c e g l i e r e i l c o m a n d o M o d i f i c a | A n n u l l a c a n c e l l a z i o n e o p r e m e r e C t r l + Z .

1 0 . 6 . 9 Cancellare i dati

P e r e l i m i n a r e i n t e r i r e c o r d :1 - S e l e z i o n a r e i r e c o r d d a e l i m i n a r e f a c e n d o c l i c s u l s e l e t t o r e a s i n i s t r a d i c i a s c u n r e c o r d .2 - P r e m e r e C a n c e l l a ( o s c e g l i e r e M o d i f i c a | C a n c e l l a ) . I l p r o g r a m m a c h i e d e l a c o n f e r m a d e l l ’ e l i m i n a z i o n e .3 - F a r e c l i c s u Sì p e r e l i m i n a r e i r e c o r d s e l e z i o n a t i o p p u r e s u N o p e r r i n u n c i a r e a l l a c a n c e l l a z i o n e .

1 0 . 6 . 1 0 E l i m i n a r e r e c o r d

• F a r e c l i c s u l p u l s a n t e N u o v o r e c o r d d e l l a b a r r a d e g l i s t r u m e n t i .• S c e g l i e r e i l c o m a n d o M o d i f i c a | V a i a | N u o v o r e c o r d .• C l i c c a r e s u N u o v o r e c o r d s u l l a b a r r a d i s p o s t a m e n t o c h e s i t r o v a i n b a s s o a s i n i s t r a n e l l a f i n e s t r a .

• S e i l c o n t e n u t o c o r r e n t e d e l c a m p o è e v i d e n z i a t o ( è a t t i v a l a M o d a l i t à d i s p o s t a m e n t o , n e l l a q u a l e i t a s t i d i c o n t r o l l o d e l c u r s o r e c o n s e n t o n o d i s p o s t a r s i t r a i c a m p i ) , o g n i d a t o c h e v i e n e d i g i t a t o d a l l ’ u t e n t e s o s t i t u i s c e i s t a n t a n e a m e n t e i l c o n t e n u t o c o r r e n t e . P e r t o g l i e r e l ’ e v i d e n z i a z i o n e p r i m a d e l l a d i g i t a z i o n e , p r e m e r e i l t a s t o F 2 o p p u r e f a r e c l i c a l l ’ i n t e r n o d e l c a m p o n e l p u n t o i n c u i s i v u o l e e f f e t t u a r e l a m o d i f ic a .• S e i l c o n t e n u t o d e l c a m p o n o n è e v i d e n z i a t o (è a t t i v a l a M o d a l i t à d i m o d i f i c a , n e l l a q u a l e i t a s t i d i c o n t r o l l o d e l c u r s o r e c o n s e n t o n o d i s p o s t a r s i a l l ’ i n t e r n o d i u n c a m p o p e r m o d i f i c a r n e i l c o n t e n u t o ) , o g n i i n f o r m a z i o n e d i g i t a t a d a l l ’u t e n t e v i e n e i n s e r i t a n e l l a p o s i z i o n e d e l c u r s o r e .P e r p a s s a r e d a M o d a l i t à s p o s t a m e n t o a M o d a l i t à m o d i f i c a o v i c e v e r s a , p r e m e r e F 2 i n q u a l s i a s i m o m e n t o .

• P o r t a r e i l c u r s o r e n e l p u n t o i n c u i s i v u o l e i n i z i a r e a c a n c e l l ar e i d a t i e q u i n d i p r e m e r e i l t a s t o C a n c o i l t a s t o B a c k s p a c e , s e n e c e s s a r i o , p e r c a n c e l l a r e u n c a r a t t e r e p e r v o l t a .• S e l e z i o n a r e i d a t i a l l ’ i n t e r n o d i u n c a m p o e q u i n d i p r e m e r e i l t a s t o C a n c o i l t a s t o B a c k s p a c e p e r c a n c e l l a r e t u t t o i l t e s t o s e l e z i o n a t o .

Page 17: Microsoft Office Access 2003 - Manuale (Italiano)[1]

17/32

©© 20032003

È p o s s i b i l e u t i l i z z a r e t u t t e l e t e c n i c h e s t a n d a r d t a g l i a e i n c o l l a d i W i n d o w s p e r s p o s t a r e e c o p i a r e d a t i s e l e z i o n a t i a l l ’ i n t e r n o d i u n a t a b e l l a , e t r a A c c e s s e a l t r i p r o g r a m m i . E c c o l a t e c n i c a g e n e r a l e :1 - S e l e z i o n a r e i d a t i c h e s i v o g l i o n o s p o s t a r e o c o p i a r e .

2 - P o r t a r e i l c u r s o r e n e l p u n t o i n c u i s i v o g l i o n o d i s p o r r e i d a t i c o p i a t i o t a g l i a t i e f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i I n c o l l a o p p u r e s c e g l i e r e M o d i f i c a | I n c o l l a o p r e m e r e C t r l + V .

1 0 . 6 . 1 1 Come copiare e spostare dati

S e i n u n a t a b e l l a s i i n c l u d e u n c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e , è p o s s i b i l e u t i l i z z a r l o p e r p o r t a r s i r a p i d a m e n t e i n c o r r i s p o n d e n z a d i o g n i t i p o d i i n f o r m a z i o n e p a r t e n d o d a u n d a t a b a s e o d a u n a m a s c h e r a . E s u f f i c i e n t e f a r e c l i c s u u n i n d i r i z z o d i c o l l e g a m e n t o i p e r t e s t u a l e v i s u a l i z z a t o n e l c a m p o p e r r a g g i u n g e r e u n a l t r o p r o g r a m m a o u n a l t r o o g g e t t o . E c c o i p a s s i p e r l ’ u s o d i c o l l e g a m e n t i i p e r t e s t u a l i i n u n a t a b e l l a d i A c c e s s :1 - S e l e z i o n a r e l a t a b e l l a a l l a q u a l e s i d e s i d e r a a g g i u n g e r e u n c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e n e l l a f i n e s t r a d e l d a t a b a s e e f a r e c l i c s u S t r u t t u r a .2 - A g g i u n g e r e u n n u o v o c a m p o a l l a t a b e l l a e a s s e g n a r g l i i l t i p o d i c a m p o C o l l e g a m e n t o i p e r t e s t u a l e . R i p e t e r e q u e s t o p a s s o p e r c i a s c u n c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e d a i n c l u d e r e n e l l a t a b e l l a .3 - C l i c c a r e s u V i s u a l i z z a n e l l a b a r r a d e g l i s t r u m e n t i p e r p a s s a r e a l l a V i s u a l i z z a z i o n e F o g l i o d a t i . S c e g l i e r e S ìq u a n d o i l p r o g r a m m a r i c h i e d e s e s i v o g l i a n o s a l v a r e l e m o d i f i c h e a p p o r t a t e a l l a s t r u t t u r a d e l l a t a b e l l a .4 - P o r t a r e i l c u r s o r e s u l c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e e c l i c c a r e s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e . C o m p i l a r e l a f i n e s t r a M o d i f i c a c o l l e g a m e n t o i p e r t e s t u a l e e c l i c c a r e s u O K .

1 0 . 6 . 1 2 C o l l e g a m e n t i i p e r t e s t u a l i i n u n a t a b e l l a

L o s t r u m e n t o I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e a p r e u n a f i n e s t r a d i d i a l o g o c h e c o n s e n t e l a c r e a z i o n e d i c o l l e g a m e n t i i p e r t e s t u a l i a i n d i r i z z i I n t e r n e t ( f i l e u r l) , a d o c u m e n t i m e m o r i z z a t i n e l c o m p u t e r l o c a l e o i n r e t e o p p u r e a u n d a t a b a s e d i A c c e s s . Q u e s t a f i n e s t r a d i d i a l o g o i n c l u d e u n ’ o p z i o n e c h e c o n s e n t e d i r a g g i u n g e r e r a p i d a m e n t e U n p u n t o s p e c i f i c o . P e r u t i l i z z a r e l o s t r u m e n t o I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e :1 - A p r i r e i l f o g l i o d a t i o l a m a s c h e r a c o n i l c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e c h e s i d e s i d e r a m o d i f i c a r e .2 - F a r e c l i c s u l c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e p e r a t t i v a r e il p u l s a n t e I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e d e l l a b a r r a d e g l i s t r u m e n t i . S e i l c a m p o c o n t i e n e g i à u n i n d i r i z z o d i c o l l e g a m e n t o i p e r t e s t u a l e , n o n s i d e v e f a r e c l i c s u d i e s s o ( s i o t t e r r e b b e i l r i s u l t a t o d i r a g g i u n g e r e q u e l l ’ i n d i r i z z o ) m a u t i l i z z a r e i l t a s t o I n v i o, i l t a s t o T a b o u n t a s t o d i c o n t r o l l o d e l c u r s o r e p e r s c e g l i e r e i l c a m p o .3 - F a r e c l i c s u l p u l s a n t e I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o I n s e r i s c i | C o l l e g a m e n t o i p e r t e s t u a l e p e r a p r i r e l a f i n e s t r a I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e .4 - I m m e t t e r e u n n o m e d i f i l e o u n i n d i r i z z o U R L n e l l a c a s e l l a a l d i s o t t o d i C o l l e g a a f i l e o U R L . S e s i f a c l i c s u S f o g l i a, s i p o t rà s c e g l i e r e u t i l i z z a n d o l a f i n e s t r a d i d i a l o g o C o l l e g a a f i l e c h e o p e r a c o m e l e a l t r e f i n e s t r a d i d i a l o g o A p r i f i l e . S e s i e s a m i n a l’ e l e n c o a d i s c e s a T i p o f i l e d i q u e s t a f i n e s t r a d i d i a l o g o , s i t r o v e r a n n o l e o p z i o n i T u t t i i f i l e , F i l e d i O f f i c e , F i l e I n t e r n e t , D o c u m e n t i , C a r t e l l e d i l a v o r o , P r e s e n t a z i o n i , D a t a b a s e , P r o g e t t i , F i l e H T M L , F i l e d i t e s t o, F i l e G I F , F i l e J P E G , F i l e V R M L e M o d e l l i .5 - F a r e c l i c s u S f o g l i a I n d i r i z z o r i p o r t a t o n e l f i l e ( o p z i o n a l e ) s e s i d e s i d e r a p o r t a r s i d i r e t t a m e n t e i n u n p u n t o s p e c i f i c o d e l f i l e i m m e s s o n e l p a s s o 4 . L ’ a s p e t t o d e l l a f i n e s t r a d i d i a l o g o S e l e z i o n a p o s i z i o n e d i p e n d e d al t i p o d i d o c u m e n t o c h e s i r a g g i u n g e c o n i l c o l l e g a m e n t o i p e r t e s t u a l e . S e s i s t a e f f e t t u a n d o u n c o l l e g a m e n t o a u n d a t a b a s e d i A c c e s s , c o m p a r e u n a f i n e s t r a s i m i l e a u n a f i n e s t r a di d a t a b a s e . E f f e t t u a r e l a s c e l t a e f a r e c l i c s u O K p e r t o r n a r e a l l a f i n e s t r a d i d i a l o g o I n s e r i s c i c o l l e g a m e n t o i p e r t e s t u a l e .6 - F a r e c l i c s u O K p e r i m m e t t e r e l ’ i n d i r i z z o n e l c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e .

1 0 . 6 . 1 3 Lo strumento Inserisci collegamento ipertestuale

P e r m o d i f i c a r e u n i n d i r i z z o d i c o l l e g a m e n t o i p e r t e s t u a l e :

1 0 . 6 . 1 4 Modifica di un indirizzo di collegamento ipertestuale

• S e s i d e s i d e r a c o p i a r e ( d u p l i c a r e ) i d a t i s e l e z i o n a t i , f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i C o p i ao p p u r e s c e g l i e r e i l c o m a n d o M o d i f i c a | C o p i a o p r e m e r e C t r l + C .• S e s i d e s i d e r a s p o s t a r e i d a t i s e l e z i o n a t i , f a r e c l i c s u l p u l s a n t e T a g l i a d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e M o d i f i c a | T a g l i a o p p u r e p r e m e r e C t r l + X .

• P o r t a r e i l c u r s o r e s u l l ’ i n d i r i z z o , s e n z a f a r e c l i c s u d i e s s o . Q u i n d i , p r e m e r e F 2 e d e f f e t t u a r e l e m o d i f i c h e . P r e m e r e d i n u o v o F 2 p e r s e l e z i o n a r e d i n u o v o t u t t o i l c a m p o .O p p u r e• F a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l l ’ i n d i r i z z o , s c e g l i e r e i l c o m a n d o C o l l e g a m e n t o i p e r t e s t u a l e | M o d i f i c a c o l l e g a m e n t o i p e r t e s t u a l e e m o d i f i c a r e l’ i n d i r i z z o t r a m i t e l a f i n e s t r a d i d i a l o g o M o d i f i c a c o l l e g a m e n t o i p e r t e s t u a l e . P e r s a l v a r e i c a m b i a m e n t i , f a r e c l i c s u O K .P e r c a n c e l l a r e u n i n d i r i z z o d a u n c a m p o d i c o l l e g a m e n t o i p e r t e s t u a l e , p o r t a r e i l c u r s o r e s u l l ’ i n d i r i z z o s e n z a c l i c c a r e s u d i e s s o e p r e m e r e C a n c o p p u r e c l i c c a r e c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l l ’ i n d i r i z z o e s c e g l i e r e T a g l i a .

Page 18: Microsoft Office Access 2003 - Manuale (Italiano)[1]

18/32

©© 20032003

T r a m i t e l a t e c n i c a O L E , i n u n c a m p o a l l ’ i n t e r n o d i u n a t a b e l l a è p o s s i b i l e m e m o r i z z a r e i m m a g i n i , s u o n i , g r a f i c i , v i d e o e a l t r i o g g e t t i . N a t u r a l m e n t e , t u t t i q u e s t i o g g e t t i p o s s o n o e s s e r e i m m e s s i i n u n c a m p o s o l o s e i l c a m p o è s t a t o d e f i n i t o d i t i p o d a t i o g g e t t o O L E . L a t e c n o l o g i a O L E r i g u a r d a e s s e n z i a l m e n t e l’ i n s e r i m e n t o d i o g g e t t i d a u n ’ a p p l i c a z i o n e ( p r o g r a m m a ) W i n d o w s a u n ’ a l t r a . I l m o n d o O L E p o s s i e d e d u e t i p i p r i n c i p a l i d i p r o g r a m m i , i s e r v e r e i c l i e n t .

1 0 . 6 . 1 5 U s o d e l l a t e c n i c a O L E p e r m e m o r i z z a r e i m m a g i n i , s u o n i e a l t r i o g g e t t i

E s i s t o n o d u e m o d i p e r i n s e r i r e u n o g g e t t o O L E i n u n a t a b e l l a d i A c c e s s :

1 0 . 6 . 1 6 C o l l e g a r e e i n c o r p o r a r e

U n m e t o d o s e m p l i c e p e r c o l l e g a r e o i n c o r p o r a r e u n o g g e t t o i n u n a t a b e l l a d i A c c e s s c o n s i s t e s e m p l i c e m e n t e n e l l ’ i n s e r i r e u n a c o p i a c o m p l e t a d e l l ’ o g g e t t o . P e r c o p i a c o m p l e t a s i i n t e n d e u n s u o n o , u n ’ i m m a g i n e o q u a l s i a s i c o s a g i à c r e a t a e m e m o r i z z a t a s u d i s c o . È n e c e s s a r i o c o n o s c e r e i l n o m e d e l l ’ o g g e t t o e l a p o s i z i o n e n e l l a q u a l e e s s o è m e m o r i z z a t o ; q u i n d i p e r i n s e r i r e l ’ o g g e t t o :1 - S e n o n l o s i è a n c o r a f a t t o , a v v i a r e A c c e s s e a p r i r e i l d a t a b a s e e l a t a b e l l a a p p r o p r i a t i i n V i s u a l i z z a z i o n e F o g l i o d a t i o in V i s u a l i z z a z i o n e M a s c h e r a .2 - P o r t a r s i s u l r e c o r d e s u l c a m p o O L E n e l q u a l e s i v u o l e i n s e r i r e l ’ o g g e t t o .3 - C l i c c a r e c o n i l p u l s a n t e d e s t r o s u l c a m p o e s c e g l i e r e I n s e r i s c i o g g e t t o o p p u r e s c e g l i e r e i l c o m a n d o M o d i f i c a | I n s e r i s c i o g g e t t o n e l l a b a r r a d e i m e n u d i A c c e s s .4 - N e l l a f i n e s t r a d i d i a l o g o I n s e r i s c i o g g e t t o c h e c o m p a r e , s c e g l i e r e i l p u l s a n t e d i o p z i o n e C r e a d a f i l e .5 - D i g i t a r e l a p o s i z i o n e e s a t t a e i l n o m e d e l l ’ o g g e t t o n e l l a c a s e l l a d i t e s t o F i l e . S e n o n s i c o n o s c e i l n o m e n él ’e s a t t a p o s i z i o n e , s i p u ò s c e g l i e r e i l p u l s a n t e S f o g l i a p e r c e r c a r e l ’ o g g e t t o .6 - E s e g u i r e u n a d e l l e a z i o n i s e g u e n t i :

7 - F a r e c l i c s u O K .L ’ a s p e t t o c h e u n o g g e t t o a s s u m e i n u n a t a b e l l a d i p e n d e d a p iù f a t t o r i :

1 0 . 6 . 1 7 U n m e t o d o s e m p l i c e p e r l ’ i n s e r i m e n t o d i o g g e t t i

A l c u n i o g g e t t i c h e v e n g o n o i n s e r i t i i n u n a t a b e l l a , c o m e f o t o g r af i e o g r a f i c i , s o n o d e s t i n a t i a e s s e r e s e m p l i c e m e n t e o s s e r v a t i , m a o g n i t a n t o p u ò p r e s e n t a r s i l a n e c e s s i t à d i m o d i f i c a r l i . A l t r i o g g e t t i , c o m e b r a n i s o n o r i e d i a n i m a z i o n e , s o n o d e s t i n a t i a e s s e r e a t t i v a t i . L’ a t t i v a z i o n e o l a m o d i f i c a d i u n o g g e t t o s i o t t i e n e f a c e n d o d o p p i o c l i c s u d i e s s o . G l i e f f e t t i c h e s e g u o n o i l d o p p i o c l i c d i p e n d o n o d a l t i p o d i o g g e t t o . S e s i f a d o p p i o c l i c s u u n o g g e t t o v i s u a l i z z a t o , s i v i e n e t r a s f e r i t i n e l p r o g r a m m a s o r g e n t e d e l l ’ o g g e t t o , n e l q u a l e , s e s i d e s i d e r a , p o s s o n o e s s e r e e f f e t t u a t e m o d i f i c h e a l l ’ o g g e t t o . L’ o g g e t t o v i e n e v i s u a l i z z a t o i n u n a f i n e s t r a d i p r o g r a m m a s e p a r a t a o i n u n a c o r n i c e c h e c o n s e n t e l a m o d i f i c a i m me d i a t a n e l l a f i n e s t r a d i A c c e s s . P e r t o r n a r e i n A c c e s s , c h i u d e r e i l p r o g r a m m a s o r g e n t e d a l l a s u a b a r r a d i m e nu ( n o n l a b a r r a d e i m e n u d i A c c e s s ) s c e g l i e n d o i l c o m a n d o F i l e | E s c i o p p u r e f a c e n d o c l i c s u l s u o p u l s a n t e C h i u d i ( s e è a p e r t a u n a f i n e s t r a s e p a r a t a ) o a l l ’ e s t e r n o d e l l a c o r n i c e d i m o d i f i c a ( s e l ’ o g g e t t o c o m p a r e a l l ’ i n t e r n o d i u n a f i n e s t r a d i A c c e s s ) . R i s p o n d e r e a l l e e v e n t u a l i r i c h i e s t e c h e c o m p a i o n o s u l l o s c h e r m o . S e s i f a d o p p i o c l i c s u u n s u o n o , v i d e o o o g g e t t o s i m i l e , A c c e s s “ e s e g u e” l ’ o g g e t t o .

1 0 . 6 . 1 8 A t t i v a r e e m o d i f i c a r e o g g e t t i O L E

• S e r v e r - U n S e r v e r O L E è u n p r o g r a m m a c h e s e r v e g l i o g g e t t i c h e v e n g o n o u s a t i i n a l t r e ap p l i c a z i o n i . E s e m p i d i s e r v e r O L E i n c l u d o n o W i n d o w s P a i n t , i l R e g i s t r a t o r e d i s u o n i e W o r d P a d , p r o g r a m m i d i u t i l i t àc h e c o r r e d a n o W i n d o w s , i l p r o g r a m m a M i c r o s o f t G r a p h c h e a c c o m p a g n a A c c e s s e g l i a l t r i p r o g r a m m i d i M i c r o s o f t O f f i c e , i n c l u s i W o r d , E x c e l e P o w e r P o i n t .• C l i e n t - U n C l i e n t O L E è u n p r o g r a m m a c h e p u ò a c c e t t a r e i s e r v i z i ( c i o è g l i o g g e t t i ) f o r n i t i d a p r o g r a m m i c o m e q u e l l i i n d i c a t i .

• I n c o r p o r a r e - U n a c o p i a s e p a r a t a d e l l ’ o g g e t t o v i e n e p o s t a n e l l a t a b e l l a . L a c o p i a p r e s e n t e n e l l a t a b e ll a èc o m p l e t a m e n t e i n d i p e n d e n t e d a l l ’ o g g e t t o o r i g i n a r i o .• C o l l e g a r e - A c c e s s m a n t i e n e u n c o l l e g a m e n t o c o n l ’ o g g e t t o s o r g e n t e o r i g i n a r i o , p e r c i ò s e u n a c o p i a v i e n e m o d i f i c a t a , s i m o d i f i c a a n c h e l ’ a l t r a c o p i a .

• P e r s t a b i l i r e u n c o l l e g a m e n t o t r a o g g e t t o o r i g i n a r i o e c o p i a n e l l a t a b e l l a , a t t i v a r e l a c a s e l l a C o l l e g a m e n t o .• P e r i n c o r p o r a r e u n a c o p i a d e l l ’ o g g e t t o n e l l a t a b e l l a , l a s c i a r e d i s a t t i v a t a l a c a s e l l a d i c o n t r o l l o C o l l e g a m e n t o .• P e r v i s u a l i z z a r e l ’ o g g e t t o s o l o c o m e i c o n a , a t t i v a r e l a c a s e l l a d i c o n t r o l l o M o s t r a c o m e i c o n a .• P e r v i s u a l i z z a r e l’ o g g e t t o i n t e r o ( c o m e , a d e s e m p i o , u n a f o t o g r a f i a ) , l a s c i a r e d i s at t i v a t a l a c a s e l l a d i c o n t r o l l o M o s t r a c o m e i c o n a .

• I n V i s u a l i z z a z i o n e F o g l i o d a t i , è v i s i b i l e s o l o u n a b r e v e d e s c r i z i o n e d e l l ’ o g g e t t o .• I n V i s u a l i z z a z i o n e M a s c h e r a , c o m p a r e l ’ o g g e t t o v e r o e p r o p r i o s e s i t r a t t a d i i m m a g i n e , g r a f i c o o u n a l t r o o g g e t t o d i t i p o v i s i v o .• S e l ’ o g g e t t o è u n s u o n o o u n e l e m e n t o d i t i p o n o n v i s i v o o p p u r e a l m o m e n t o d e l l ’ i n s e r i m e n t o d e l l ’ o g g e t t o s i è a t t i v a t a l ’ o p z i o n e M o s t r a c o m e i c o n a , s u l l a s c h e d a c o m p a r e u n ’ i c o n a r a p p r e s e n t a n t e l ’ o g g e t t o .

Page 19: Microsoft Office Access 2003 - Manuale (Italiano)[1]

19/32

©© 20032003

I n q u e s t o c a p i t o l o v e r r a n n o i l l u s t r a t i i m e t o d i p e r o r d i n a r e , e f f e t t u a r e r i c e r c h e , s o s t i t u i r e , f i l t r a r e e s t a m p a r e i d a t i . Q u e s t e o p e r a z i o n i s o n o d i s p o n i b i l i s i a i n V i s u a l i z z a z i o n e F o g l i o d a t i s i a i n V i s u a l i z z a z i o n e M a s c h e r a , a n c h e s e è p r e f e r i b i l e l a v o r a r e i n V i s u a l i z z a z i o n e F o g l i o d a t i n e l l a q u a l e g l i e f f e t t i s o n o p iù e v i d e n t i

O r d i n a r e i d a t i s i g n i f i c a s e m p l i c e m e n t e d i s p o r l i s e c o n d o u n o r d i n e s i g n i f i c a t i v oP e r u n o r d i n a m e n t o s e m p l i c e e r a p i d o i n b a s e a u n c a m p o q u a l u n q u e d ì u n a t a b e l l a ( t r a n n ec a m p i d i c o l l e g a m e n t o i p e r t e s t u a l e, c a m p i m e m o e o g g e t t i O L E ) :

1 - A p r i r e l a t a b e l l a , q u e r y o m a s c h e r a i n V i s u a l i z z a z i o n e F o g l i o d a t i o V i s u a l i z z a z i o n e M a s c h e r a .2 - F a r e c l i c s u l c a m p o i n b a s e a l q u a l e s i v u o l e e f f e t t u a r e l ’ o r d i n a m e n t o .3 - C l i c c a r e s u O r d i n a m e n t o c r e s c e n t e / O r d i n a m e n t o d e c r e s c e n t e d e l l a b a r r a d e g l i s t r u m e n t i o s c e g l i e r e R e c o r d | O r d i n a | O r d i n a m e n t o c r e s c e n t e / O r d i n a m e n t o d e c r e s c e n t e o c l i c c a r e c o n i l p u l s a n t e d e s t r o s u l s e l e t t o r e d i c o l o n n a ( i n V i s u a l i z z a z i o n e F o g l i o d a t i ) e s c e g l i e r e i l c o m a n d o O r d i n a m e n t o c r e s c e n t e / O r d i n a m e n t o d e c r e s c e n t e n e l m e n u d i s c e l t a r a p i d a .P e r r i p o r t a r e i r e c o r d a l l ’ o r d i n e o r i g i n a r i o , s c e g l i e r e R e c o r d | R i m u o v i f i l t r o / o r d i n a o c l i c c a r e c o n i l p u l s a n t e d e s t r o d e l m o u s e i n u n p u n t o q u a l s i a s i d e l f o g l i o d a t i o d e l l a m a s c h e r a e s c e g l i e r e R i m u o v i f i l t r o / o r d i n a .

1 0 . 7 . 1 O r d i n a r e ( a l f a b e t i c a m e n t e ) i d a t i

P e r e s a m i n a r e i r e c o r d s i p u ò r i c o r r e r e a l l o s c o r r i m e n t o , m a p e r t r o v a r e r a p i d a m e n t e u n d a t o s p e c i f i c o , s i d e v e f a r e r i c o r s o a l l e s e g u e n t i t e c n i c h e d i r i c e r c a :1 - A p r i r e l a t a b e l l a , q u e r y o m a s c h e r a c h e c o n t i e n e i d a t i n e i q u a l i c e r c a r e . U t i l i z z a r e i n d i f f e r e n t e m e n t e s i a l a V i s u a l i z z a z i o n e F o g l i o d a t i s i a l a V i s u a l i z z a z i o n e M a s c h e r a .2 - S e s i d e s i d e r a e f f e t t u a r e r i c e r c h e s o l o i n u n c a m p o s p e c i f i c o , f a r e c l i c s u l c a m p o . L a f u n z i o n e T r o v a p u òe f f e t t u a r e r i c e r c h e n e i c a m p i d i q u a l s i a s i t i p o d a t i t r a n n e S i / N o , O g g e t t o O L E o R i c e r c a .3 - F a r e c l i c s u l p u l s a n t e T r o v a o s c e g l i e r e M o d i f i c a | T r o v a o p r e m e r e C t r l + F . O p p u r e f a r e c l i c c o n i l p u l s a n t e d e s t r o s u l s e l e t t o r e d i c o l o n n a ( i n V i s u a l i z z a z i o n e F o g l i o d a t i ) o s u l c a m p o ( i n V i s u a l i z z a z i o n e M a s c h e r a ) e s c e g l i e r e T r o v a n e l m e n u d i s c e l t a r a p i d a . C o m p a r e l a f i n e s t r a d i d i a l o g o T r o v a n e l c a m p o .4 - N e l l a c a s e l l a d i t e s t o T r o v a , i m m e t t e r e i l t e s t o c h e s i d e s i d e r a c e r c a r e .5 - S e l e z i o n a r e o d e s e l e z i o n a r e l e c a s e l l e d i c o n t r o l l o M a i u s c o l e / m i n u s c o l e , C e r c a i n c a m p i c o m e f o r m a t t a t i e C e r c a s o l o i n c a m p o c o r r e n t e ; n e l l ’ e l e n c o a d i s c e s a C e r c a , s c e g l i e r e u n a d i r e z i o n e d i r i c e r c a ( S u , G i ù o p p u r e T u t t o) ; s e n e c e s s a r i o , s c e g l i e r e , u n a o p z i o n e d i c o n f r o n t o n e l l ’ e l e n c o a d i s c e s a C o n f r o n t a ( C a m p o i n t e r o , P a r t e d e l c a m p o o I n i z i o c a m p o ) .6 - P e r a v v i a r e l a r i c e r c a , f a r e c l i c s u l p u l s a n t e T r o v a p r i m o ( p e r t r o v a r e l a p r i m a p r e s e n z a d i u n t e s t o n e l l a t a b e l l a ) o T r o v a s u c c e s s i v o ( p e r t r o v a r e l a s u c c e s s i v a p r e s e n z a r i s p e t t o a l l a p o s i z i o n e d e l c u r s o r e ) .A c c e s s t r o v e r à i l p r i m o ( e v e n t u a l e ) r e c o r d c h e c o r r i s p o n d e a l d a t o c e r c a t o . R ip e t e r e i p a s s i 4-6 p r e c e d e n t i ( o p p u r e f a r e c l i c s u T r o v a s u c c e s s i v o ) f i n o a c h e s i t r o v a i l r e c o r d c e r c a t o . S e A c c e s s s e g n a l a d i n on e s s e r e r i u s c i t o a t r o v a r e l ’ e l e m e n t o c e r c a t o , f a r e c l i c s u O K p e r t e r m i n a r e l a r i c e r c a . T e r m i n a t a l ’ o p e r a z i o n e , f a r e c l i c su C h i u d i p e r c h i u d e r e l a f i n e s t r a d i d i a l o g o .

1 0 . 7 . 2 R i c e r c a d i s i n g o l i r e c o r d

O l t r e a c o n s e n t i r e l a c o r r e z i o n e d e g l i e r r o r i d i d i g i t a z i o n e i n t u t t o o i n p a r t e n e i c a m p i m e m o e d i t e s t o , A c c e s s c o n s e n t e l a m o d i f i c a i m m e d i a t a d e l c o n t e n u t o d i u n c a m p o i n t u t t i o i n a l c u n i r e c o r d d e l l a t a b e l l a c o n l a f u n z i o n e S o s t i t u i s c i .1 - A p r i r e l a t a b e l l a , q u e r y o m a s c h e r a c h e c o n t i e n e i d a t i c h e s i v o g l i o n o m o d i f i c a r e .2 - ( O p z i o n a l e ) S e s i d e s i d e r a l i m i t a r e l a s o s t i t u z i o n e a u n s i n g o l o c a m p o , f a r e c l i c s u l c a m p o . L a f u n z i o n e S o s t i t u i s c i è i n g r a d o d i s o s t i t u i r e t e s t o n e i c a m p i d i q u a l s i a s i t i p o , t r a n n e O g g e t t i O L E , C o n t a t o r e e R i c e r c a .3 - S c e g l i e r e M o d i f i c a | S o s t i t u i s c i o p r e m e r e C t r l + H . C o m p a r e l a f i n e s t r a d i d i a l o g o S o s t i t u i s c i n e l c a m p o .4 - I m m e t t e r e i l v a l o r e c h e s i v u o l e c e r c a r e e m o d i f i c a r e n e l l a c a s e l l a d i t e s t o T r o v a .5 - D i g i t a r e i l t e s t o s o s t i t u t i v o n e l l a c a s e l l a d i t e s t o S o s t i t u i s c i c o n .6 - S e l e z i o n a r e o d e s e l e z i o n a r e l e c a s e l l e d i c o n t r o l l o M a i u s c o l e / m i n u s c o l e , C a m p o i n t e r o e C e r c a s o l o i n c a m p o c o r r e n t e ; s e n e c e s s a r i o , s c e g l i e r e u n a d i r e z i o n e S u , G i ù o T u t t o n e l l ’ e l e n c o a d i s c e s a C e r c a . Q u i n d i :

7 - F a r e c l i c s u S ì p e r c o n t i n u a r e c o n i l p a s s o 9 o s u N o p e r a n n u l l a r e l ’ o p e r a z i o n e e t o r n a r e a i p a s s i 4 , 5 o 6 .8 - S e A c c e s s n o n t r o v a a l t r e o c c o r r e n z e d e l t e s t o c e r c a t o , v i s u a l iz z a u n m e s s a g g i o . F a r e c l i c s u O K p e r f a r s c o m p a r i r e i l m e s s a g g i o .9 - T e r m i n a t a l ’ o p e r a z i o n e d i s o s t i t u z i o n e , f a r e c l i c s u l p u l s a n t e C h i u d i .

1 0 . 7 . 3 S o s t i t u i r e d a t i i n p i ù r e c o r d

1 0 . 7 O r d i n a m e n t o , r i c e r c a , f i l t r o e s t a m p a

• P e r e f f e t t u a r e a u t o m a t i c a m e n t e l a m o d i f i c a ( A c c e s s n o n r i c h i e d er à d i v e r i f i c a r e o g n i o c c o r r e n z a ) , f a r e c l i c s u l p u l s a n t e S o s t i t u i s c i t u t t o.• P e r v e r i f i c a r e l e m o d i f i c h e i n c i a s c u n r e c o r d , f a r e c l i c s u l p u l s a n t e T r o v a s u c c e s s i v o . Q u i n d i , s e s i d e s i d e r a m o d i f i c a r e i l r e c o r d c o r r e n t e , f a r e c l i c s u S o s t i t u i s c i . S e n o n s i v u o l e m o d i f i c a r e i l r e c o r d c o r r e n t e , f a r e c l i c s u l p u l s a n t e T r o v a s u c c e s s i v o .

Page 20: Microsoft Office Access 2003 - Manuale (Italiano)[1]

20/32

©© 20032003

S i p u ò u t i l i z z a r e u n f i l t r o p e r e s c l u d e r e t e m p o r a n e a m e n t e r e c o r d i n d e si d e r a t i . I v a r i m e t o d i p e r l a c r e a z i o n e d i u n f i l t r o s o n o d e s c r i t t i n e l l e s e z i o n i c h e s e g u o n o .

1 0 . 7 . 4 E s c l u d e r e r e c o r d i n d e s i d e r a t i t r a m i t e f i l t r o

1 0 . 7 . 5 F i l t r o i n b a s e a i n p u t

I l f i l t r o i n b a s e a i n p u t è u n a n u o v a f u n z i o n e d i A c c e s s c h e , p e r l a r i c e r c a d i r e c o r d , c o n s e n t e l ’ u s o d i u n m e n u d i s c e l t a r a p i d a d e l c a m p o . P e r u t i l i z z a r e i l f i l t r o i n b a s e a i n p u t :1 - A p r i r e l a t a b e l l a , m a s c h e r a o q u e r y c h e s i d e s i d e r a f i l t r a r e .2 - F a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e i n q u a l s i a s i p u n t o de l c a m p o c h e s i v u o l e u t i l i z z a r e c o m e f i l t r o , t r a n n e n e l l ’ i n t e s t a z i o n e d e l c a m p o .3 - I m m e t t e r e u n v a l o r e n e l l a c a s e l l a F i l t r o p e r : e p r e m e r e I n v i o.

1 0 . 7 . 6 F i l t r o i n b a s e a s e l e z i o n e o a e s c l u s i o n e s e l e z i o n e

S i s u p p o n g a d i a v e r t r o v a t o u n r e c o r d c o n t e n e n t e d a t i c h e i n t e r e s s a n o . S i d e s i d e r a t r o v a r e t u t t i i r e c o r d c o r i g l i s t e s s i d a t i e t u t t i i re c o r d c o n t e n e n t i d a t i d i v e r s i . A c c e s s c o n s e n t e d i e s e g u i r e q u e s t i c o m p i t i i n m o d o f a c il i s s i m o :1 - A p r i r e l a t a b e l l a , q u e r y o m a s c h e r a c h e s i d e s i d e r a f i l t r a r e ( i n V i s u a l i z z a z i o n e F o g l i o d a t i o in V i s u a l i z z a z i o n e M a s c h e r a ) .2 - I n d i v i d u a r e i l r e c o r d e i l c a m p o c o n t e n e n t e u n e s e m p i o d e i d a t i c h e s i d e s i d e r a f a r f i l t r a r e a d A c c e s s .3 - I n d i c a r e a d A c c e s s i l m e t o d o d i c o n f r o n t o :

4 - P e r a p p l i c a r e i l f i l t r o :

1 0 . 7 . 7 F i l t r o i n b a s e a m a s c h e r a

C o n s e n t e l a c r e a z i o n e d i u n f i l t r o d i g i t a n d o i v a l o r i d a r i c e r c ar e i n u n a m a s c h e r a . S e g u i r e q u e s t i p a s s i :1 - A p r i r e l a t a b e l l a , q u e r y o m a s c h e r a i n V i s u a l i z z a z i o n e F o g l i o d a t i o V i s u a l i z z a z i o n e M a s c h e r a .2 - F a r e c l i c s u l p u l s a n t e F i l t r o i n b a s e a m a s c h e r a n e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o R e c o r d | F i l t r o | F i l t r o i n b a s e a m a s c h e r a . S e s i è i n V i s u a l i z z a z i o n e F o g l i o d a t i , c o m p a r e u n f o g l i o d a t i v u o t o d i u n a s o l a r i g a . S e s i è i n V i s u a l i z z a z i o n e M a s c h e r a , c o m p a r e u n a m a s c h e r a v u o t a .3 - F a r e c l i c s u l c a m p o c h e v e r r à u t i l i z z a t o p e r s p e c i f i c a r e i c r i t e r i c h e i r e c o r d d e v o n o s o d d i sf a r e p e r e s s e r e i n c l u s i n e l l ’ i n s i e m e f i l t r a t o d e i r e c o r d .4 - I m m e t t e r e i c r i t e r i s c e g l i e n d o i l v a l o r e r i c e r c a t o n e l l ’ e l e n c o a d i s c e s a d e i c a m p o ( s e l ’ e l e n c o i n c l u d e p i ùv a l o r i ) o d i g i t a n d o d i r e t t a m e n t e n e l c a m p o u n v a l o r e o u n ’ e s p r e s s i o n e .5 - R i p e t e r e , s e n e c e s s a r i o , i p a s s i 3 e 4 , p e r s p e c i f i c a r e u l t e r i o r i c r i t e r i c h e d e v o n o r i s u l t a r e s o d d i s f a t t i p e r c i a s c u n r e c o r d f i l t r a t o .6 - S e s i v u o l e s p e c i f i c a r e v a l o r i a l t e r n a t i v i c h e i r e c o r d d e v o n o c o n t e n e r e p e r s u p e r a r e i l f i l t r o , c l i c c a r e s u l l a s c h e d a o i n f o n d o a l l a f i n e s t r a , s p e c i f i c a r e i c r i t e r i p e r q u e l l a s c h e d a r i p e t e n d o , s e n e c e s s a r i o , i p a s s i 3 e 4 . S i p u ò c o n t i n u a r e a i m p o s t a r e u l t e r i o r i c r i t e r i O R e s i p u ò p a s s a r e a u n a s c h e d a d i v e r s a f a c e n d o c l i c s u d i e s s a .7 - Q u a n d o s i è p r o n t i a d a p p l i c a r e i l f i l t r o , f a r e c l i c s u l p u l s a n t e A p p l i c a f i l t r o d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o A p p l i c a f i l t r o / o r d i n a m e n t o .A c c e s s f i l t r a i r e c o r d n e l m o d o r i c h i e s t o e l i v i s u a l i z z a n e l f og l i o d a t i o n e l l a m a s c h e r a . C o m e p e r F i l t r o i n b a s e a s e l e z i o n e , s i p u ò r i m u o v e r e , s e n e c e s s a r i o , i l f i l t r o e s a l v a r e i l f i l t r o i n V i s u a l i z z a z i o n e F o g l i o d a t i o i n V i s u a l i z z a z i o n e M a s c h e r a .

• P e r c o n f r o n t a r e t u t t o i l c a m p o , s e l e z i o n a r e t u t t o i l c a m p o o f ar e c l i c n e l c a m p o s e n z a e f f e t t u a r e s e l e z i o n i .• P e r c o n f r o n t a r e u n a p a r t e d e l c a m p o d a l p r i m o c a r a t t e r e s e l e z i o n a r e i l t e s t o a p a r t i r e d a l l ’ i n i z i o d e l c a m p o .• P e r c o n f r o n t a r e u n a p a r t e d e l c a m p o , d o p o i l p r i m o c a r a t t e r e , s e l e z i o n a r e i l t e s t o a l l ’ i n t e r n o d e l c a m p o .

• P e r v i s u a l i z z a r e i s o l i r e c o r d i l c u i c o n t e n u t o c o r r i s p o n d e a l d a t o c e r c a t o , f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i F i l t r o i n b a s e a s e l e z i o n e o p p u r e s c e g l i e r e i l c o m a n d o R e c o r d | F i l t r o | F i l t r o i n b a s e a s e l e z i o n e o f a r e c l i c c o r i i l p u l s a n t e d e s t r o d e l m o u s e s u l c a m p o e s c e g l i e r e F i l t r o i n b a s e a s e l e z i o n e .• P e r v i s u a l i z z a r e i s o l i r e c o r d i l c u i c o n t e n u t o n o n c o r r i s p o n d e i l d a t o c e r c a t o f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u l c a m p o e s c e g l i e r e F i l t r o a d e s c l u s i o n e s e l e z i o n e ( A c c e s s e s c l u d e r à i r e c o r d c o n t e n e n t i n e l c a m p o v a l o r i n u l l i e i r e c o r d c o n t e n e n t i v a l o r i c o r r i s p o n d e n t i al c a m p o c o r r e n t e o a l l a s e l e z i o n e c o r r e n t e ) .L a V i s u a l i z z a z i o n e F o g l i o d a t i o l a V i s u a l i z z a z i o n e M a s c h e r a r i f l e t t e a l l ’ i s t a n t e l e s c e l t e d i f i l t r o d e l l ’ u t e n t e . P e r r i m u o v e r e o a p p l i c a r e d i n u o v o u n f i l t r o :• P e r r i m u o v e r e ( o r i a p p l i c a r e ) s o l a m e n t e i l f i l t r o , f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i R i m u o v i f i l t r o . S i t r a t t a d i u n c o m m u t a t o r e a d u e p o s i z i o n i : s i f a c l i c s u d i e s s o p e r r i m u o v e r e i l f i l t r o ( i l p u l s a n t e a p p a r e s p o r g e n t e ) e s i f a c l i c a n c o r a u n a v o l t a p e r a p p l i c a r e d i n u o v o i l f i l t r o ( i l p u l s a n t e a p p a r e p r e m u t o ) . L a d e s c r i z i o n e d e l c o m a n d o , v i s i b i l e s e s i p o r t a i l m o u s e s u l p ul s a n t e , p a s s a d a R i m u o v i f i l t r o a d A p p l i c a f i l t r o , p e r i n d i c a r e l ’ a z i o n e d e l p u l s a n t e .• P e r r i m u o v e r e s i a i l f i l t r o s i a l’ o r d i n a m e n t o , f a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e s u u n q u a l s i a s i c a m p o e s c e g l i e r e R i m u o v i f i l t r o / o r d i n a o s c e g l i e r e i l c o m a n d o R e c o r d | R i m u o v i f i l t r o / o r d i n a .

Page 21: Microsoft Office Access 2003 - Manuale (Italiano)[1]

21/32

©© 20032003

L a f u n z i o n e O r d i n a m e n t o / f i l t r o a v a n z a t o p u ò e s s e r e c o n v e n i e n t e s e s i d e v o n o c r e a r e f i l t r i c o m p l e s s i . C o n O r d i n a m e n t o / f i l t r o a v a n z a t o s i p o s s o n o o r d i n a r e i c a m p i e s p e c i f i c a r e c o n t e m p o r a n e a m e n t e i c r i t e r i d i s e l e z i o n e , s e n z a p a s s a r e d a u n a s c h e d a a l l ’ a l t r a ( c o m e p e r F i l t r o i n b a s e a m a s c h e r a ) . S e g u i r e q u e s t i p a s s i:1 - A p r i r e l a t a b e l l a , q u e r y o m a s c h e r a i n V i s u a l i z z a z i o n e F o g l i o d a t i o V i s u a l i z z a z i o n e M a s c h e r a .2 - S c e g l i e r e R e c o r d | F i l t r o | O r d i n a m e n t o / f i l t r o a v a n z a t o . C o m p a r e l a f i n e s t r a d e l l a s t r u t t u r a d e l f i l t r o .3 - T r a s c i n a r e i l n o m e d i u n c a m p o , n e l q u a l e s i v o g l i o n o e f f e t t u a r e r i c e r c h e o p p u r e i n b a s e a l q u a l e s i d e s i d e r a e f f e t t u a r e l’ o r d i n a m e n t o , d a l l ’ e l e n c o c h e c o m p a r e n e l r i q u a d r o s u p e r i o r e d e l l a f i n e s t r a a l l a g r i g l i a Q B E n e l r i q u a d r o i n f e r i o r e d e l l a f i n e s t r a . O p p u r e , f a r e d o p p i o c l i c s u un c a m p o p e r c o p i a r l o n e l l a c e l l a d e l c a m p o s u c c e s s i v o d i s p o n i b i l e n e l l a g r i g l i a Q B E .4 - S c e g l i e r e C r e s c e n t e o D e c r e s c e n t e n e l l a c a s e l l a O r d i n a m e n t o , s e s i d e s i d e r a o r d i n a r e i r e c o r d i n b a s e a l c a m p o s p e c i f i c a t o n e l p a s s o 3 .5 - D i g i t a r e i l v a l o r e r i c e r c a t o n e l l a c e l l a C r i t e r i a l d i s o t t o d e l n o m e d e l c a m p o .6 - R i p e t e r e i p a s s i d a l 3 a l 5 i n m o d o d a s p e c i f i c a r e t u t t i i c r i t e r i d e s i d e r a t i .7 - F a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i A p p l i c a f i l t r o o p p u r e s c e g l i e r e i l c o m a n d o F i l t r o | A p p l i c a f i l t r o / o r d i n a m e n t o.G l i e v e n t u a l i r e c o r d c h e n o n s o d d i s f a n o i c r i t e r i s p e c i f i c a t i s c o m p a i o n o s e m p l i c e m e n t e d a l l a v i s t a . P e r q u a n t o r i g u a r d a F i l t r o i n b a s e a m a s c h e r a e F i l t r o i n b a s e a s e l e z i o n e, è p o s s i b i l e r i m u o v e r e i l f i l t r o i m p o s t a t o c o n O r d i n a m e n t o / f i l t r o a v a n z a t o ( f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i R i m u o v i f i l t r o ) e s a l v a r e i l f i l t r o c o n i l f o g l i o d a t i e c o n l a m a s c h e r a ( f a r e c l i c s u l p u l s an t e d e l l a b a r r a d e g l i s t r u m e n t i S a l v a i n V i s u a l i z z a z i o n e F o g l i o d a t i o i n V i s u a l i z z a z i o n e M a s c h e r a ) . S e s i r i m u o v e i l f i l t r o , t u t t i i r e c o r d d e l l a t a b e l l a s a r a n n o d i n u o v o a c c e s s i b i l i . P e r r i a p p l i c a r e i l f i l t r o , è s u f f i c i e n t e f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i A p p l i c a f i l t r o .

1 0 . 7 . 8 L a f u n z i o n e O r d i n a m e n t o / f i l t r o a v a n z a t o

S e s i h a u n F o g l i o d a t i o u n a M a s c h e r a s u l l o s c h e r m o e s i d e s i d er a u n a c o p i a s t a m p a t a d i t a l e o g g e t t o , s i p u òn o r m a l m e n t e p r e m e r e i l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i S t a m p a p e r s t a m p a r e i d a t i s e n z a c h e i l p r o g r a m m a r i c h i e d a u l t e r i o r i i n f o r m a z i o n i . P e r o t t e n e r e u n a r a p id a a n t e p r i m a d e l l ’ a s p e t t o c h e i d a t i a s s u m e r a n n o u n a v o l t a s t a m p a t i , i n i z i a r e i n V i s u a l i z z a z i o n e F o g l i o d a t i o in V i s u a l i z z a z i o n e M a s c h e r a , q u i n d i , f a r e c l i c s u l p u l s a n t e A n t e p r i m a d i s t a m p a d e l l a b a r r a de g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o F i l e | A n t e p r i m a d i s t a m p a . C o m p a r e u n ’ i m m a g i n e a p i e n a p a g i n a d e l F o g l i o d a t i o d e l l a M a s c h e r a . P e r s t a m p a r e i d a t i d e l l a M a s c h e r a o d e l F o g l i o d a t i c o r r e n t e s e n z a v i s u a l i z z a r n e l ’ a n t e p r i m a :1 - P e r s t a m p a r e r e c o r d s e l e z i o n a t i , e v i d e n z i a r e i r e c o r d d e s i d e r a t i .2 - C l i c c a r e s u l p u l s a n t e S t a m p a d e l l a b a r r a d e g l i s t r u m e n t i s e s i d e s i d e r a u t i l i z z a r e l e o p z i o n i d i s t a m p a p r e d e f i n i t e e s t a m p a r e i m m e d i a t a m e n t e . O p p u r e , s e s i d e s i d e r a u n m a g g i o r e c o n t r o l l o s u l l a s t a m p a , s c e g l i e r e i l c o m a n d o F i l e | S t a m p a o p r e m e r e C t r l + P . C o m p a r e l a f i n e s t r a d i d i a l o g o S t a m p a .3 - I m p o s t a r e l e o p z i o n i d e l l a f i n e s t r a d i d i a l o g o S t a m p a .4 - Q u a n d o s i è p r o n t i a i n i z i a r e l a s t a m p a , s c e g l i e r e O K .

1 0 . 7 . 9 S t a m p a d i m a s c h e r e o d i f o g l i d a t i

L e q u e r y c o n s e n t o n o d i e s t r a r r e i n f o r m a z i o n i s p e c i f i c h e d a l l e t a b e l l e e m o d i f i c a r e i n v a r i m o d i i d a t i s e l e z i o n a t i . I n r e a l t à , l a c a p a c i t à d i e f f e t t u a r e q u e r y r a p p r e s e n t a i l m o t i v o e s s e n z i a l e d e l l ’u s o d i a p p l i c a z i o n i p e r l a g e s t i o n e d i d a t a b a s e ( a n z i c hé p r o g r a m m i d i f o g l i o e l e t t r o n i c o o d i e l a b o r a z i o n e t e s t i ) q u a n d o s i t r a t t a d i g e s t i r e g r o s s i v o l u m i d i d a t i c o r r e l a t i . L e q u e r y c o n s e n t o n o d i v i s u a l i z z a r e i d a t i d e s i d e r a t i , n e l l a s e q u e n z a d e s i d e r a t a . E s s e c o n s e n t o n o a n c h e d i e f f e t t u a r e c a l c o l i s u i d a t i, c r e a r e r a g g r u p p a m e n t i d i d a t i p e r m a s c h e r e , r e p o r t , g r a f i c i e a l t r e q u e r y , e f f e t t u a r e m o d i f i c h e g l o b a l i a l l e t a b e l l e e c r e a r e n u o v e t a b e l l e . Q u a n d o s i e s e g u e l a m a g g i o r p a r t e d e l l e q u e r y o s i a p p l i c a u n f i l t r o , A c c e s s r a c c o g l i e i d a t i r i c h i e s t i d a l l ’ u t e n t e i n u n d y n a s e t . I l d y n a s e t h a l ’ a s p e t t o e i l c o m p o r t a m e n t o d i u n a t a b e l l a , m a , i n r e a l t à , è u n a v i s u a l i z z a z i o n e d i n a m i c a e v i v a d i u n a o p iù t a b e l l e . P e r c i ò , l e m o d i f i c h e e f f e t t u a t e d o p o l ’ e s e c u z i o n e d i u n a q u e r y s o l i t a m e n t e h a n n o e f f e t t o s u l l e t a b e l l e s o t t o s t a n t i d e l d a t a b a s e v e r o e p r o p r i o . E p o s s i b i l e c r e a r e n u m e r o s i t i p i d i q u e r y :

10 .8 Effet tuare r icerche nel le tabel le

• Q u e r y d i s e l e z i o n e – È i l t i p o d i q u e r y u s a t o p iù f r e q u e n t e m e n t e , c h e c o n s e n t e d i s e l e z i o n a r e r e c o r d , c r e a r e n u o v i c a m p i c a l c o l a t i e r i e p i l o g a r e i d a t i .• Q u e r y a c a m p i i n c r o c i a t i - R a g g r u p p a i d a t i i n c a t e g o r i e e v i s u a l i z z a i v a l o r i i n u n f o r m at o s i m i l e a u n f o g l i o e l e t t r o n i c o c o n t o t a l i d i r i e p i l o g o . L e q u e r y a c a m p i i n c r o c i a t i p o s s o n o e s s e r e u t i l i z z a t e p e r c o n f r o n t a r e v a l o r i e p e r o s s e r v a r e t e n d e n z e n e i d a t i , p e r v i s u a li z z a r e d a t i r i e p i l o g a t i v i . L e q u e r y a c a m p i i n c r o c i a t i s o n o p a r t i c o l a r m e n t e u t i l i c o m e b a s e p e r r e p o r t e g r a f i c i .• Q u e r y d i c r e a z i o n e t a b e l l a - C r e a u n a n u o v a t a b e l l a d a u n d y n a s e t . U t i l i z z a r e u n a q u e r y d i c r e a z i o n e t a b e l l a p e r c r e a r e u n a c o p i a d i s i c u r e z z a d i u n a t a b e l l a , p e r s a l v a r e u n a t a b e l l a s t o r i c a c o n t e n e n t e v e c c h i r e c o r d c h e s i h a i n t e n z i o n e d i e l i m i n a r e d a u n ’ a l t r a t a b e l l a , p e r o t t e n e r e u n s o t t o i n s i e m e d i d a t i d a i q u a l i c r e a r e u n r e p o r t o p p u r e p e r c r e a r e u n a t a b e l l a d a e s p o r t a r e i n a l t r e a p p l i c a z i o n i .

Page 22: Microsoft Office Access 2003 - Manuale (Italiano)[1]

22/32

©© 20032003

• Q u e r y d i a g g i o r n a m e n t o - C o n s e n t e d i e f f e t t u a r e m o d i f i c h e g l o b a l i a i d a t i d i u n a o p i ù t a b e l l e . Q u e s t eq u e r y o f f r o n o u n m e t o d o p o t e n t e e r a p i d o p e r l a m o d i f i c a d i n u m e r o s i r e c o r d c o n u n a s o l a o p e r a z i o n e .• Q u e r y d i a c c o d a m e n t o - A g g i u n g e i r e c o r d d i u n a o p i ù t a b e l l e a l l a f i n e d i u n a t a b e l l a g i à e s i s t e n t e . L eq u e r y d i a c c o d a m e n t o s o n o p a r t i c o l a r m e n t e u t i l i p e r a g g i u n g e r e v e c c h i r e c o r d a l l a f in e d i u n a t a b e l l a .• Q u e r y d i e l i m i n a z i o n e - E l i m i n a u n g r u p p o d i r e c o r d d a u n a o p iù t a b e l l e .• Q u e r y d i t i p o p a s s -t h r o u g h - R i s e r v a t e e s c l u s i v a m e n t e a g l i e s p e r t i d i S Q L , l e q u e r y d i t i p o p a s s-t h r o u g h i n v i a n o c o m a n d i d i r e t t a m e n t e a u n s e r v e r d i d a t a b a s e S Q L u t i l i z za n d o l a s i n t a s s i r i c h i e s t a d a l s e r v e r .• Q u e r y d i d e f i n i z i o n e d a t i - A n c h ’ e s s e r i s e r v a t e a g l i e s p e r t i d i S Q L , l e q u e r y d i d e f i n i z i o n e d a t i u s a n o i s t r u z i o n i d e l l i n g u a g g i o S Q L p e r c r e a r e o m o d i f i c a r e o g g e t t i d i d a t a b a s e n e l d a t a b a s e c o r r e n t e .

L ’ A u t o c o m p o s i z i o n e q u e r y o f f r e u n m e t o d o r a p i d o p e r l ’ e s e c u z i o n e d e l l e q u a t t r o s p e c i a l i q u e r y s o t t o e l e n c a t e :

P e r u t i l i z z a r e l e a u t o c o m p o s i z i o n i q u e r y :1 - D a u n a q u a l s i a s i f i n e s t r a d i d a t a b a s e a p e r t a , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i N u o v o o g g e t t o e s c e g l i e r e Q u e r y . O p p u r e f a r e c l i c s u l l a s c h e d a Q u e r y d e l l a f i n e s t r a d i d a t a b a s e e p o i f a r e c l i c s u l p u l s a n t e N u o v o o s c e g l i e r e i l c om a n d o I n s e r i s c i | Q u e r y .2 - N e l l a f i n e s t r a d i d i a l o g o N u o v a q u e r y , f a r e c l i c s u u n a d e l l e o p z i o n i A u t o c o m p o s i z i o n e Q u e r y s e m p l i c e , A u t o c o m p o s i z i o n e Q u e r y a c a m p i i n c r o c i a t i , A u t o c o m p o s i z i o n e r i c e r c a d u p l i c a t i , A u t o c o m p o s i z i o n e r i c e r c a c a m p i n o n c o r r i s p o n d e n t i .3 - S e g u i r e l e i s t r u z i o n i d e l l ’ A u t o c o m p o s i z i o n e e d e f f e t t u a r e l e s c e l t e n e l l e f i n e s t r e d i d i a l o g o c h e c o m p a i o n o.I n u n i s t a n t e , è d i s p o n i b i l e u n a n u o v a q u e r y c h e s i p u ò u t i l i z z a r e o p e r s o n a l i z z a r e s e c o n d o l e p r o p r i e e s i g e n z e .

1 0 . 8 . 1 U s o d e l l ’ A u t o c o m p o s i z i o n e q u e r y

L ’ A u t o c o m p o s i z i o n e q u e r y è i n g r a d o d i c r e a r e i t i p i s p e c i f i c i d i q u e r y i l l u s t r a t i n e l l a s e z i o n e p r e c e d e n t e . P e r c r e a r e a l t r i t i p i d i q u e r y , s i d e v e p a r t i r e d a z e r o . E c c o i p a s s i d a s e g u i r e :1 - D a u n a q u a l s i a s i f i n e s t r a d i d a t a b a s e a p e r t a , f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i N u o v o o g g e t t o e s c e g l i e r e Q u e r y O p p u r e c l i c c a r e s u l l a s c h e d a Q u e r yd e l l a f i n e s t r a d i d a t a b a s e e q u i n d i s u l p u l s a n t e N u o v o o s c e g l i e r e I n s e r i s c i | Q u e r y .2 - N e l l a f i n e s t r a d i d i a l o g o N u o v a q u e r y , f a r e

1 0 . 8 . 2 C r e a z i o n e d i u n a q u e r y d a z e r o

d o p p i o c l i c s u V i s u a l i z z a z i o n e S t r u t t u r a . S i a p r e u n a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y d i n o m e Q u e r y 1 : Q u e r y d i s e l e z i o n e e c o m p a r e l a f i n e s t r a d i d i a l o g o M o s t r a t a b e l l a .3 - A g g i u n g e r e l e t a b e l l e d a s o t t o p o r r e a q u e r y .4 - Q u a n d o s i è t e r m i n a t o , s c e g l i e r e C h i u d i . S e s i s o n o c r e a t e r e l a z i o n i t r a t a b e l l e o s e A c c e s s è i n g r a d o d i c a l c o l a r e a u t o m a t i c a m e n t e l e r e l a z i o n i , c o m p a i o n o a u t o m a t i c a m e n t e l e l i n e e d i j o i n .5 – P e r s c e g l i e r e i l t i p o d i q u e r y d e s i d e r a t a , c l i c c a r e s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e T i p o

q u e r y d e l l a b a r r a d e g l i s t r u m e n t i o s c e g l i e r e l e o p z i o n i n e l m e n u Q u e r y . L e o p z i o n i s o n o S e l e z i o n e ( t i p o d i q u e r y p r e d e f i n i t o e u t i l i z z a t o p i ùs p e s s o ) , C a m p i i n c r o c i a t i , C r e a z i o n e t a b e l l a , A g g i o r n a m e n t o , A c c o d a m e n t o e d E l i m i n a z i o n e .6 - F a r e d o p p i o c l i c s u i c a m p i c h e s i d e s i d e r a v i s u a l i z z a r e n e l d y n a s e t o u t i l i z z a r e n e i c r i t e r i d i s e l e z i o n e n e l l ’ a r e a d e l l e t a b e l l e . O p p u r e t r a s c i n a r e i c a m p i d a l l ’ a r e a d e l l e t a b e l l e a l l a g r i g l i a Q B E o s c e g l i e r e i c a m p i n e l l ’ e l e n c o a d i s c e s a d e l l a r i g a C a m p o d e l l a g r i g l i a Q B E .7 - N e l l e r i g h e C r i t e r i s o t t o l a c o l o n n a a p p r o p r i a t a d e l l a g r i g l i a Q B Es p e c i f i c a r e t u t t i i c r i t e r i d i s e l e z i o n e p e r i s o l a r e i r e c o r d d e l d y n a s e t L e t e c n i c h e s o n o l e s t e s s e u t i l i z z a t e p e r l a c r e a z i o n e d i u n f i l t r o.8 - C o m p i l a r e , s e n e c e s s a r i o , l e a l t r e a r e e d e l l a g r i g l i a Q B E .9 - ( O p z i o n a l e ) S p e c i f i c a r e l e p r o p r i e t à d e l l a q u e r y o d i u n s i n g o l o c a m p o .

A c c e s s o f f r e d u e m e t o d i p e r l a c r e a z i o n e d i q u e r y : L ’ A u t o c o m p o s i z i o n e q u e r y e l a c r e a z i o n e “d a z e r o ” .

• A u t o c o m p o s i z i o n e Q u e r y s e m p l i c e - C r e a u n a Q u e r y d i s e l e z i o n e r e l a t i v a a u n a o p iù t a b e l l e . L a q u e r yr i s u l t a n t e p u ò e f f e t t u a r e u n a s e m p l i c e s e l e z i o n e o c a l c o l a r e s o m m e , m e d i e , c o n t e g g i e a l t r i t i p i d i t o t a l i .• A u t o c o m p o s i z i o n e Q u e r y a c a m p i i n c r o c i a t i - C r e a u n a t a b e l l a a c a m p i i n c r o c i a t i r e l a t i v a a u n a s i n g o l a t a b e l l a o q u e r y .• A u t o c o m p o s i z i o n e r i c e r c a d u p l i c a t i - T r o v a i r e c o r d d u p l i c a t i d i u n a s i n g o l a t a b e l l a o q u e r y.• A u t o c o m p o s i z i o n e r i c e r c a c a m p i n o n c o r r i s p o n d e n t i - T r o v a i r e c o r d d i u n a t a b e l l a c h e n o n h a n n o r e c o r d c o r r e l a t i i n u n ’ a l t r a t a b e l l a .

Page 23: Microsoft Office Access 2003 - Manuale (Italiano)[1]

23/32

©© 20032003

È p o s s i b i l e v i s u a l i z z a r e i l d y n a s e t i n q u a l s i a s i m o m e n t o . F a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n e Q u e r y d e l l a b a r r a d e g l i s t r u m e n t i o s c e g l i e r e i l c o m a n d o V i s u a l i z z a | V i s u a li z z a z i o n e f o g l i o d a t i . C o m p a r e i l d y n a s e t i n V i s u a l i z z a z i o n e l F o g l i o d a t i . I n e s s o , s i p u ò e s e g u i r e u n a q u a l s i a s i d e l l e s e g u e n t i o p e r a z i o n i :

1 0 . 8 . 3 V i s u a l i z z a z i o n e d e l d y n a s e t

S e s i è c r e a t a u n a q u e r y d i c o m a n d o ( Q u e r y d i : C r e a z i o n e t a b e l l a , A g g i o r n a m e n t o , A c c o d a m e n t o o E l i m i n a z i o n e ) , i l p a s s a g g i o a l l a V i s u a l i z z a z i o n e F o g l i o d a t i c o n s e n t e d i v e d e r e q u a l i r e c o r d v e r r a n n o i n t e r e s s a t i d a l l ’ e s e c u z i o n e d e l l a q u e r y. L ’ a n t e p r i m a i n V i s u a l i z z a z i o n e F o g l i o d a t i o f f r e u n a p o s s i b i l i t à d i v e d e r e i r i s u l t a t i p r i m a d i l a n c i a r s i n e l l ’ o p e r a z i o n e . Q u a n d o s i è c e r t i c h e i l d y n a s e t v i s u a l i z z a e s a t t a m e n t e i r e c o r d v o l u t i , è p o s s i b i l e e s e g u i r e l a q u e r y i n q u e s t o m o d o :1 - T o r n a r e a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e f a r e c l i c s u l p u l s a n t e E s e g u i d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o Q u e r y | E s e g u i .2 - R i s p o n d e r e a l l e e v e n t u a l i r i c h i e s t e d e l l a q u e r y d i c o m a n d o . L a q u e r y d i c o m a n d o e s e g u e i l s u o c o m p i t o e r i p o r t a a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y .

1 0 . 8 . 4 E s e c u z i o n e d e l l e Q u e r y d i c o m a n d o ( o Q u e r y d i a z i o n e )

P e r s a l v a r e u n a q u e r y , u s a r e u n a q u a l s i a s i d e l l e t e c n i c h e s e g u e n t i :

S e s i t r a t t a d i u n a n u o v a q u e r y s i pu ò i m m e t t e r e u n n o m e e s c e g l i e r e O K . S i n o t i c h e A c c e s s n o n c o n s e n t e d i s a l v a r e l a q u e r y c o n l o s t e s s o n o m e d i u n a t a b e l l a o q u e r y e s i s t e n t e . Q u a n d o s i s a l v a u n a q u e r y , A c c e s s s a l v a s o l o l a s t r u t t u r a d e l l a q u e r y e n o n l ’ i n s i e m e d i r e c o r d r i s u l t a n t e . I n q u e s t o m o d o , l a q u e r y o p e r e r à s u q u a l s i a s i d a t o p r e s e n t e n e l l e t a b e l l e a l m o m e n t o d e l l ’ e s e c u z i o n e d e l l a q u e r y.

1 0 . 8 . 5 S a l v a t a g g i o d i u n a q u e r y

P e r a p r i r e u n a q u e r y s a l v a t a i n p r e c e d e n z a :1 - I n i z i a r e n e l l a f i n e s t r a d e l d a t a b a s e e f a r e c l i c s u l l a s c h e d a Q u e r y2 - P e r v i s u a l i z z a r e i l d y n a s e t d e l l a q u e r y o p e r e s e g u i r e u n a q u e r y d i c o m a n d o , f a r e d o p p i o c l i c s u l n o m e d e l l a q u e r y d e s i d e r a t a o p p u r e e v i d e n z i a r e i l n o m e d e l l a q u e r y e f a r e c l i c s u A p r i . P e r a p r i r e l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e v i d e n z i a r e l a q u e r y d e s i d e r a t a e f a r e c l i c s u S t r u t t u r a .

1 0 . 8 . 6 A p e r t u r a d i u n a q u e r y s a l v a t a i n p r e c e d e n z a

L a c o m p i l a z i o n e d e l l a g r i g l i a Q B E r a p p r e s e n t a f o r s e l a p a r t e p iù c o m p l i c a t a d e l l a c r e a z i o n e d i u n a q u e r y. L e r i g h e c h e c o m p a i o n o n e l l a g r i g l i a d i p e n d o n o d a l t i p o d i q u e r y c h e s i i n t e n d e r e a l i z z a r e . E c c o a l c u n e t e c n i c h e c h e s i p o s s o n o u s a r e p e r i l r i e m p i m e n t o d e l l e r i g h e d e l l a g r i g l i a Q B E p e r u n a q u e r y d i s e l e z i o n e .

1 0 . 8 . 7 C o m p i l a z i o n e d e l l a g r i g l i a Q B E

• M o d i f i c a d e i r e c o r d d e i d y n a s e t - L e m o d i f i c h e a g g i o r n a n o l e t a b e l l e s o t t o s t a n t i .• P e r s o n a l i z z a z i o n e d e l l ’ a s p e t t o d e l d y n a s e t - U t i l i z z a r e l e s t e s s e t e c n i c h e c h e s i u s a n o p e r p e r s o n a l i z z a r e u n F o g l i o d a t i . S a l v a n d o l a q u e r y , s i p o s s o n o s a l v a r e l e m o d i f i c h e a l l a d i s p o s i z i o n e .• O r d i n a m e n t o d e i d y n a s e t - U t i l i z z a r e l e s t e s s e t e c n i c h e u s a t e p e r l ’ o r d i n a m e n t o d i u n a t a b e l l a .• F i l t r o d e i d y n a s e t - U t i l i z z a r e l e s t e s s e t e c n i c h e u s a t e p e r l a c r e a z i o n e d i u n f i l t r o d i u n a t a b e l l a .• A n t e p r i m a e s t a m p a d e l d y n a s e t i n m o d o a n a l o g o a q u a l s i a s i a l t r a t a b e l l a - P e r o t t e n e r e l ’ a n t e p r i m a d i s t a m p a , f a r e c l i c s u l p u l s a n t e A n t e p r i m a d i s t a m p a d e l l a b a r r a d e g l i s t r u m e n t i o s c e g l i e r e i l c o m a n d o File | A n t e p r i m a d i s t a m p a . Q u a n d o s i è p r o n t i a l l a s t a m p a d e i d a t i , f a r e c l i c s u l p u l s a n t e S t a m p a d e l la b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o F i l e | S t a m p a .• R i t o r n o a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y - A q u e s t o s c o p o , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n eQ u e r y o s c e g l i e r e i l c o m a n d o V i s u a l i z z a | V i s u a l i z z a z i o n e S t r u t t u r a . L a q u e r y r i a p p a r e n e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e s a t t a m e n t e c o m e l a s i è l a s c i a t a .

• S e s i è n e l l a f i n e s t r a Q u e r y o f o g l i o d a t i , f a r e c l i c s u l p u l s a n t e S a l v a d e l l a b a r r a d e g l i st r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o F i l e S a l v a q u e r y o p r e m e r e C t r l + S .• S e i l l a v o r o c o n l a q u e r y è p e r i l m o m e n t o t e r m i n a t o , c h i u d e r e l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y o l a V i s u a l i z z a z i o n e F o g l i o d a t i ( a d e s e m p i o , s c e g l i e r e F i l e | C h i u d i o p r e m e r e C t r l + W ) . Q u a n d o i l p r o g r a m m a c h i e d e s e s i v o g l i a n o s a l v a r e l e m o d i f i c h e , s c e g l i e r e S ì .

• N e l l a r i g a C a m p o , i m m e t t e r e i c a m p i c o n i q u a l i s i d e s i d e r a l a v o r a r e . P e r a g g i u n g e r e i c a m p i a l l ’ e l e n c o d e i c a m p i , u t i l i z z a r e i l m e t o d o d e l d o p p i o c l i c o i l t r a s c i n a m e n t o . O p p u r e , p e r r i c h i e d e r e a d A c c e s s d i v i s u a l i z z a r e t u t t i i c a m p i a n c h e s e l a s t r u t t u r a v i e n e m o d i f i c a t a , u t i l i z z a r e l’ a s t e r i s c o ( * ) c o m e n o m e d i c a m p o . O p p u r e f a r e d o p p i o c l i c s u l n o m e d e l l a t a b e l l a p e r s e l e z i o n a r e t u t t i i c a m p i e t r a s c i n a r e u n c a m p o a l l a r i g a C a m p o ( s i s p o s t a n o a n c h e t u t t i g l i a l t r i c a m p i ) . O p p u re , P e r s e l e z i o n a r e i l c a m p o d e s i d e r a t o , u t i l i z z a r e l’ e l e n c o a d i s c e s a d e l l a r i g a C a m p o . È p o s s i b i l e c r e a r e a n c h e n u o v i c a m p i c a l c o l a t i n e l l a r i g a C a m p o .• N e l l a r i g a O r d i n a m e n t o , s c e g l i e r e l a s e q u e n z a d i o r d i n a m e n t o d e s i d e r a t a p e r c i a s c u n c a m p o . L e o p z i o n i d i s p o n i b i l i s o n o C r e s c e n t e , D e c r e s c e n t e o N o n o r d i n a t o

Page 24: Microsoft Office Access 2003 - Manuale (Italiano)[1]

24/32

©© 20032003

P e r l i m i t a r e i r e c o r d d e l d y n a s e t o p e r l a v i s u a l i z z a z i o n e s i m u l t a n e a d i d a t i p r o v e n i e n t i d a p iù t a b e l l e c o r r e l a t e , è p o s s i b i l e e f f e t t u a r e i l j o i n t r a t a b e l l e . A c c e s s e f f e t t u a a u t o m a t i c a m e n t e i l j o i n t r a t a b e l l e q u a n d o e s s e v e n g o n o a g g i u n t e a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y :

L e l i n e e d i j o i n c o m p a i o n o n e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y t r a l e t a b e l l e o g g e t t o d i j o i n p e r m o s t r a r e i l g e n e r e d i r e l a z i o n e e s i s t e n t e t r a d i l o r o , i c a m p i i n t e r e s s a t i dal j o i n e s e l a r e l a z i o n e i m p o n e l’ i n t e g r i t àr e f e r e n z i a l e . L’ o p e r a z i o n e d i j o i n t r a t a b e l l e p u ò e s s e r e e f f e t t u a t a i n t r e m o d i : j o i n i n t e r n o ( d e t t o a n c h e e q u i- j o i n ) , j o i n e s t e r n o o s e l f j o i n ( j o i n d i u n a t a b e l l a c o n s e s t e s s a ) . I n u n j o i n i n t e r n o , i r e c o r d d e l l e t a b e l l e o g g e t t o d i j o i n d e v o n o a v e r e g l i s t e s s i v a l o r i p e r i c a m p i d i j o i n . Q u a n d o A c c e s s e f f e t t u a a u t o m a t i c a m e n t e i l j o i n t r a t a b e l l e i n b a s e a i n o m i d i c a m p o e a i t i p i d i d a t i , c r e a s e m p r e u n j o i n i n t e r n o .I n u n j o i n e s t e r n o , t u t t i i r e c o r d d i u n a t a b e l l a v e n g o n o a g g i u n t i a l d y n a s e t a n c h e s e n o n e s i s t o n o v a l o r i c o r r i s p o n d e n t i n e l c a m p o d i j o i n d e l l ’ a l t r a t a b e l l a . I r e c o r d d e l l a s e c o n d a t a b e l l a v e n g o n o c o m b i n a t i c o n q u e l l i d e l l a p r i m a t a b e l l a s o l o s e e s i s t o n o c o r r i s p o n d e n z e n e l c a m p o d i j o i n . I n u n s e l f j o i n , l a t a b e l l a è o g g e t t o d i j o i nc o n s e s t e s s a . I l s e l f j o i n p u ò e s s e r e u t i l e q u a n d o u n c a m p o d e l l a t a b e l l a f a r i f e r i m e n t o a u n a l t r o c a m p o d e l l a s t e s s a t a b e l l a . P e r l a d e f i n i z i o n e d i q u a l s i a s i t i p o d i j o i n , p e r p r i m a c o s a s i d e f i n i s c e u n j o i n i n t e r n o :1 - I n i z i a r e n e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e a g g i u n g e r e l e t a b e l l e c o n l e q u a l i s i d e s i d e r a e f f e t t u a r e l ’ o p e r a z i o n e d i j o i n . S e c o m p a i o n o a u t o m a t i c a m e n t e l e l i n e e d i j o i n , l ’ o p e r a z i o n e è c o n c l u s a .2 - P e r e f f e t t u a r e l’ o p e r a z i o n e d i j o i n d i t a b e l l e m a n u a l m e n t e , t r a s c i n a r e i l n o m e c a m p o d i u n a t a b e l l a s u u n n o m e c a m p o c o n t e n e n t e l o s t e s s o t i p o d i d a t i d i u n ’ a l t r a t a b e l l a . N o r m a l m e n t e s i t r a s c i n a u n a c h i a v e p r i m a r i a ( c h e c o m p a r e i n g r a s s e t t o ) .3 - R i l a s c i a r e i l p u l s a n t e d e l m o u s e .

1 0 . 8 . 8 J o i n t r a t a b e l l e

È p o s s i b i l e u s a r e l a f i n e s t r a R e l a z i o n i p e r o t t e n e r e l a “v i s i o n e d ’ i n s i e m e ” d i t u t t e l e t a b e l l e d e l d a t a b a s e e d e l l e l o r o r e l a z i o n i r e c i p r o c h e . P e r v i s u a l i z z a r e u n ’i n t e r a s t r u t t u r a d i d a t a b a s e , s e g u i r e q u e s t i p a s s i :1 - T o r n a r e a l l a f i n e s t r a d e l d a t a b a s e e s c e g l i e r e i l c o m a n d o S t r u m e n t i | R e l a z i o n i o p p u r e f a r e c l i c s u l p u l s a n t e R e l a z i o n i d e l l a b a r r a d e g l i s t r u m e n t i .2 - P e r v i s u a l i z z a r e t u t t e l e r e l a z i o n i , s c e g l i e r e R e l a z i o n i | T u t t e l e r e l a z i o n i o p p u r e f a r e c l i c s u l p u l s a n t e M o s t r a t u t t e l e r e l a z i o n i d e l l a b a r r a d e g l i s t r u m e n t i3 - S e n e c e s s a r i o , r i d i s p o r r e l e t a b e l l e s u l l o s c h e r m o i n m o d o c h e l e l i n e e d i j o i n s i a n o p i ù c h i a r e .

1 0 . 8 . 9 V i s u a l i z z a z i o n e d i u n ’i n t e r a s t r u t t u r a d i d a t a b a s e

L e l i n e e d e l j o i n i n t e r n o c o l l e g a n o i c a m p i d i j o i n d i c i a s c u n a t a b e l l a . P e r m o d i f i c a r e i l t i p o d i j o i n t r a d u e t a b e l l e :1 - F a r e c l i c c o n i l p u l s a n t e d e s t r o d e l m o u s e , s u l l a l i n e a d i j o i n c h e s i d e s i d e r a c a m b i a r e e s c e g l i e r e P r o p r i e t àj o i n . O p p u r e f a r e d o p p i o c l i c s u l l a p a r t e s o t t i l e d e l l a l i n e a d i j o i n . C o m p a r e l a f i n e s t r a d i d i a l o g o P r o p r i e t à j o i n .2 - N e l l a f i n e s t r a d i d i a l o g o P r o p r i e t à j o i n , s c e g l i e r e l ’ o p z i o n e d e s i d e r a t a . L ’ o p z i o n e 1 p r o d u c e u n j o i n i n t e r n o . L ’ o p z i o n e 2 c r e a u n j o i n e s t e r n o s i n i s t r o . L ’ o p z i o n e 3 c r e a u n j o i n e s t e r n o d e s t r o .3 - S c e g l i e r e O K . A c c e s s a g g i o r n e r à l ’ a s p e t t o d e l l a l i n e a d i j o i n p e r r i s p e c c h i a r e l a s c e l t a e f f e t t u a t a d a l l ’ u t e n t e n e l p a s s o 2 .

E l i m i n a r e u n j o i n è s e m p l i c e :1 - F a r e c l i c s u l l a p a r t e s o t t i l e d e l l a l i n e a d i j o i n c h e s i d e s i d e r a e l i m i n a r e , i n m o d o c h e a s s u m a l’ a s p e t t o g r a s s e t t o .2 - P r e m e r e i l t a s t o d i c a n c e l l a z i o n e ( C a n c ) .

P e r c r e a r e u n c a m p o c a l c o l a t o , f a r e c l i c s u u n a c e l l a C a m p o v u o t a d e l l a g r i g l i a Q B E e i m m e t t e r e u n ’ e s p r e s s i o n e c h e e f f e t t u a i l c a l c o l o . S e s i f a r i f e r i m e n t o a d a l t r i c a m p i d e l l a g r i g l i a Q B E , n o n s i d e v e d i m e n t i c a r e d i r a c c h i u d e r e i n o m i t r a p a r e n t e s i q u a d r e . S e p iù c a m p i d e l l a q u e r y h a n n o l o s t e s s o n o m e , s i d e v e s p e c i f i c a r e s i a i l n o m e d e l l a t a b e l l a s i a i l n o m e d e l c a m p o u t i l i z z a n d o i l f o r m a t o [ N o m e T a b e l l a ] ! [ n o m e C a m p o ] .

1 0 . 8 . 1 0 U s o d i c a m p i c a l c o l a t i

• Se è s t a t a s t a b i l i t a u n a r e l a z i o n e t r a l e t a b e l l e .• S e l e t a b e l l e i n c l u d o n o c a m p i c h e h a n n o l o s t e s s o n o m e e l o s t e s s o t i p o d i d a t o .

Page 25: Microsoft Office Access 2003 - Manuale (Italiano)[1]

25/32

©© 20032003

I c a l c o l i d i r i e p i l o g o d i f f e r i s c o n o d a i c a m p i c a l c o l a t i p e r i l f a t t o c h e c a l c o l a n o u n d e t e r m i n a t o v a l o r e , c o m e , a d e s e m p i o , u n a s o m m a o u n a m e d i a , s u p iù r e c o r d d i u n a t a b e l l a . P e r e s e g u i r e u n c a l c o l o d i r i e p i l o g o :1 - I n i z i a r e c o n l a c r e a z i o n e d i u n a n o r m a l e q u e r y d i s e l e z i o n e . T r a s c i n a r e n e l l a g r i g l i a Q B E i c a m p i i n b a s e a i q u a l i s i d e s i d e r a e f f e t t u a r e i l r a g g r u p p a m e n t o o s u i q u a l i s i d e s i d e r a e s e g u i r e i c a l c o l i . N o n s i d e v e i n c l u d e r e l ’a s t e r i s c o ( * ) c o m e n o m e d i c a m p o n e l l a g r i g l i a Q B E .2 - F a r e c l i c s u l p u l s a n t e T o t a l i d e l l a b a r r a d e g l i s t r u m e n t i . C o m p a r e u n a n u o v a r i g a d i t o t a l i , c o n l ’ i n d i c a z i o n e R a g g r u p p a m e n t o i n c i a s c u n a c o l o n n a . 3 - L a s c i a r e l a r i g a F o r m u l a i m p o s t a t a p e r i l R a g g r u p p a m e n t o d e i c a m p i c h e s i d e s i d e r a n o u s a r e p e r i l r a g g r u p p a m e n t o ( o p p u r e p e r l a d i s t i n z i o n e i n c a t e g o r i e o p e r l ’ e f f e t t u a z i o n e d e i t o t a l i p a r z i a l i ) .4 - N e l l a c e l l a F o r m u l a r i s e r v a t a a i c a m p i c h e d a r i e p i l o g a r e , s c e gl i e r e u n a d e l l e o p z i o n i d i r i e p i l o g o .5 - A g g i u n g e r e , s e n e c e s s a r i o , c a m p i c a l c o l a t i , s p e c i f i c h e d i o r d i n a m e n t o e c r i t e r i d i s e l e z i o n e . Q u i n d i . . .

6 - P e r v i s u a l i z z a r e i l r i s u l t a t o , f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i V i s u a l i z z a z i o n e Q u e r y.

1 0 . 8 . 1 1 R i e p i l o g a z i o n e d i d a t i

L e q u e r y a c a m p i i n c r o c i a t i c o n s e n t o n o d i o t t e n e r e t a b e l l e i n c r o c i a t e d e i d a t i p r e s e n t a n d o l i o r g a n i z z a t i i n r i g h e e c o l o n n e . N e l l a c r e a z i o n e d i u n a t a b e l l a i n c r o c i a t a , s i d e v e d ec i d e r e q u a l i c a m p i u t i l i z z a r e p e r l e i n t e s t a z i o n i d i r i g a e d i c o l o n n a e v a l o r i d i r i e p i l o g o e c o m e e f f e t t u a r e i l r i e p i l o g o d e i v a l o r i . E c c o i p a s s i d a s e g u i r e :1 - I n i z i a n d o d a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y, s c e g l i e r e l e t a b e l l e c h e s i v o g l i o n o u t i l i z z a r e . D i s p o r r e i c a m p i ( i n c l u s i q u e l l i c a l c o l a t i ) n e l l a g r i g l i a Q B E . S i p u ò s p e c i f i c a r e i c r i t e r i d i r i c e r c a e d i o r d i n a m e n t o s c e l t i . 2 - F a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e T i p o q u e r y d e l l a b a r r a d e g l i s t r u m e n t i e q u i n d i s c e g l i e r e Q u e r y a c a m p i i n c r o c i a t i . O p p u r e , s c e g l i e r e i l c o m a n d o Q u e r y | Q u e r y a c a m p i i n c r o c i a t i .3 - S c e g l i e r e I n t e s t a z i o n i r i g a n e l l a c e l l a c a m p i i n c r o c i a t i r e l a t iv a a l c a m p o c h e s i v u o l e u s a r e p e r i n t e s t a z i o n e r i g a . È p o s s i b i l e d e s i g n a r e p iù c a m p i , m a a l m e n o u n o d e v e a v e r e R a g g r u p p a m e n t o n e l l a s u a c e l l a F o r m u l a .4 - S c e g l i e r e I n t e s t a z i o n i c o l o n n a n e l l a c e l l a c a m p i i n c r o c i a t i r e la t i v a a l c a m p o c h e s i d e s i d e r a u s a r e p e r i n t e s t a z i o n i c o l o n n a . È p e r m e s s o u n s o l o c a m p o , c h e d e v e c o n t e n e r e R a g g r u p p a m e n t o n e l l a s u a c e l l a F o r m u l a .5 - S c e g l i e r e V a l o r e n e l l a c e l l a C a m p i i n c r o c i a t i r e l a t i v a a l c a m p o c h e s i d e s i d e r a r i e p i l o g a r e . Q u i n d i , n e l l a c e l l a F o r m u l a d e l c a m p o , s c e g l i e r e i l t i p o d i r i e p i l o g o d e s i d e r a t o ( n o r m a l m e n t e S o m m a o M e d i a ) . P e r q u e s t o c a m p o , n o n s i d e v e s c e g l i e r e R a g g r u p p a m e n t o .6 - P e r e f f e t t u a r e i l r a g g r u p p a m e n t o i n b a s e a c a m p i a g g i u n t i v i s e n z a v i s u a l i z z a r l i n e l r i s u l t a t o , s c e g l i e r e p e r q u e s t i c a m p i ( N o n v i s u a l i z z a t o ) n e l l a c e l l a C a m p i i n c r o c i a t i a e s s i r e l a t i v a .7 - P e r e s e g u i r e l a q u e r y , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n e Q u e r y d e l l a b a r r a d e g l i s t r u m e n t i .A c c e s s d e t e r m i n a a u t o m a t i c a m e n t e l e i n t e s t a z i o n i d i c o l o n n a r e l at i v e a i d a t i d e l l a t a b e l l a i n c r o c i a t a e o r d i n a l e i n t e s t a z i o n i p r o c e d e n d o l u n g o l e c o l o n n e d a s i n i s t r a a d e s t r a .

1 0 . 8 . 1 2 C r e a z i o n e d i q u e r y a c a m p i i n c r o c i a t i

L e q u e r y d i c o m a n d o ( o q u e r y d i a z i o n e ) d i f f e r i s c o n o d a l l e q u e r y d i s c u s s e f i n o r a , p e r i l f a t t o c h e m o d i f i c a n o o c a n c e l l a n o d a t i d i u n a t a b e l l a . I q u a t t r o t i p i d i q u e r y d i c o m a n d o s o n o d e s c r i t t i n e l l e s e z i o n i c h e s e g u o n o .

1 0 . 8 . 1 3 C r e a z i o n e d i q u e r y d i c o m a n d o

L e q u e r y d i a g g i o r n a m e n t o c o n s e n t o n o d i e f f e t t u a r e r a p i d a m e n t e m o d i f i c h e d i t u t t i i r e c o r d o d i g r u p p i d i r e c o r d . P e r c r e a r e u n a q u e r y d i a g g i o r n a m e n t o :1 - N e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y, f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e T i p o q u e r y d e l l a b a r r a d e g l i s t r u m e n t i e p o i s c e g l i e r e Q u e r y d i a g g i o r n a m e n t o . O p p u r e s c e g l i e r e i l c o m a n d o Q u e r y | Q u e r y d i a g g i o r n a m e n t o .2 - A g g i u n g e r e l e t a b e l l e , i n c l u d e r e i c a m p i c h e s i v o g l i o n o a g g i o rn a r e e i c a m p i c h e s i v o g l i o n o u s a r e p e r i c r i t e r i d i s e l e z i o n e , q u i n d i i m p o s t a r e i c r i t e r i p e r l a s e l e z i o n e d e i r e c o r d c h e s i d e s i d e r a n o a g g i o r n a r e , e s a t t a m e n t e c o m e p e r u n a q u e r y d i s e l e z i o n e .3 - N e l l a c e l l a A g g i o r n a r e l a t i v a a c i a s c u n c a m p o c h e s i d e s i d e r a m o d i f i c a r e , i m m e t t e r e u n n u o v o v a l o r e d i c a m p o o u n ’ e s p r e s s i o n e c h e c a l c o l a u n n u o v o v a l o r e .4 - P e r v e d e r e , p r i m a d e l l ’ e f f e t t i v o a g g i o r n a m e n t o , q u a l i r e c o r d v e r r a n n o a g g i o r n a t i , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n e q u e r y.5 - C o r r e g g e r e i c r i t e r i d e l l a q u e r y e v i s u a l i z z a r e i r i s u l t a t i f i n o a o t t e n e r e l a s e l e z i o n e d e i r e c o r d v o l u t i .6 - P e r l ’ e s e c u z i o n e d e l l a q u e r y d i a g g i o r n a m e n t o , t o r n a r e a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e f a r e c l i c s u l p u l s a n t e E s e g u i d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o Q u e r y | E s e g u i .7 - Q u a n d o i l p r o g r a m m a c o m u n i c a i l n u m e r o d e l l e r i g h e c h e v e r r a n n o a g g i o r n a t e , s c e g l i e r e S ì s e s i d e s i d e r a p r o c e d e r e o N o p e r a n n u l l a r e l ’ o p e r a z i o n e .

1 0 . 8 . 1 4 Query di aggiornamento

• S e s i s o n o a g g i u n t i c r i t e r i d i s e l e z i o n e a l l e c o l o n n e i n b a s e a l l e q u a l i n o n s i v u o l e e f f e t t u a r e i l r a g g r u p p a m e n t o , m o d i f i c a r e l a c e l l a F o r m u l a p e r q u e l l e c o l o n n e i n D o v e .• S e s i s o n o c r e a t i c a m p i c a l c o l a t i i n c o l o n n e i n b a s e a l l e q u a l i n o n s i v u o l e e f f e t t u a r e i l r a g g r u p p a m e n t o , m o d i f i c a r e l a c e l l a F o r m u l a p e r q u e l l e c o l o n n e i n E s p r e s s i o n e .

Page 26: Microsoft Office Access 2003 - Manuale (Italiano)[1]

26/32

©© 20032003

U n a q u e r y d i a c c o d a m e n t o c o p i a a l c u n i o t u t t i i r e c o r d d i u n a t a b e l l a ( l a t a b e l l a d i o r i g i n e ) i n f o n d o a u n ’ a l t r a t a b e l l a ( l a t a b e l l a d i d e s t i n a z i o n e ) . È u n ’ o p e r a z i o n e u t i l e q u a n d o p e r l a g e s t i o n e d e i d a t i s i u s a n o t a b e l l e s e p a r a t e c h e h a n n o s t r u t t u r e s i m i l i . P e r c r e a r e u n a q u e r y d i a c c o d a m e n t o :1 - N e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y, f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e V i s u a l i z z a z i o n e q u e r y d e l l a b a r r a d e g l i s t r u m e n t i e s c e g l i e r e Q u e r y d i a c c o d a m e n t o. O p p u r e . s c e g l i e r e i l c o m a n d o Q u e r y | Q u e r y d i a c c o d a m e n t o . C o m p a r e l a f i n e s t r a d i d i a l o g o A c c o d a m e n t o .2 - S e l a t a b e l l a s i t r o v a n e l l o s t e s s o d a t a b a s e , s a l t a r e a l p a s s o 3 . S e l a t a b e l l a d a a c c o d a r e s i t r o v a i n u n d a t a b a s e d i v e r s o , s c e g l i e r e l’ o p z i o n e A l t r o d a t a b a s e , p r e m e r e i l t a s t o T a b e n e l l a c a s e l l a N o m e f i l e , s p e c i f i c a r e l a p o s i z i o n e d i d i r e c t o r y e i l n o m e d e l d a t a b a s e .3 - N e l l ’ e l e n c o a d i s c e s a N o m e t a b e l l a , s c e g l i e r e l a t a b e l l a d i d e s t i n a z i o n e e f a r e c l i c s u O K . A g g i u n g e r e l e t a b e l l e , i n c l u d e r e i c a m p i c h e s i d e s i d e r a n o c o p i a r e e i c a m p i da u s a r e p e r i c r i t e r i d i s e l e z i o n e ; q u i n d i i m p o s t a r e i c r i t e r i p e r l a s e l e z i o n e d e i r e c o r d c h e s i v o g l i o n o a c c o d a r e n e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y , p r o p r i o c o m e p e r u n a Q u e r y d i s e l e z i o n e .4 - P e r u n ’a n t e p r i m a d e l l e m o d i f i c h e , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n e q u e r y d e l l a b a r r a d e g l i s t r u m e n t i ( o p p u r e s c e g l i e r e V i s u a l i z z a | V i s u a l i z z a z i o n e f o g l i o d a t i ) . C o r r e g g e r e l a q u e r y e v i s u a l i z z a r e i l r i s u l t a t o f i n o a o t t e n e r e l a s e l e z i o n e d e i r e c o r d d e s i d e r a t i .5 - P e r l ’ e s e c u z i o n e d e l l a Q u e r y d i a c c o d a m e n t o, p o r t a r s i a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e f a r e c l i c s u l p u l s a n t e E s e g u i d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o Q u e r y | E s e g u i .6 - Q u a n d o i l p r o g r a m m a v i s u a l i z z a i l n u m e r o d e i r e c o r d c h e v e r r a n n o a c c o d a t i , s c e g l i e r e S i s e s i v u o l e p r o c e d e r e o p p u r e N o p e r a n n u l l a r e l ’ o p e r a z i o n e .

1 0 . 8 . 1 5 Query di accodamento

L e q u e r y d i e l i m i n a z i o n e c o n s e n t o n o , i n u n c o l p o s o l o , d i e l i m i n a r e u n gr u p p o d i r e c o r d c h e c o r r i s p o n d o n o a s p e c i f i c i c r i t e r i d i r i c e r c a . P e r p r i m a c o s a , v e r r à p r e s e n t a t o i l c a s o p iù s e m p l i c e : l ’ e l i m i n a z i o n e d i r e c o r d d a u n a t a b e l l a s i n g o l a o d a p iù t a b e l l e l e g a t e d a u n a r e l a z i o n e U n o a u n o . E c c o i p a s s i d a s e g u i r e :1 - N e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y, f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e V i s u a l i z z a z i o n e Q u e r y d e l l a b a r r a d e g l i s t r u m e n t i o s c e g l i e r e i l c o m a n d o Q u e r y | Q u e r y d i e l i m i n a z i o n e .2 - A g g i u n g e r e l e t a b e l l e , i n c l u d e r e i c a m p i d a u s a r e p e r l a s e l e z i o n e d i r e c o r d s p e c i f i c i ; q u i n d i i m p o s t a r e i c r i t e r i p e r l a s e l e z i o n e d e i r e c o r d c h e s i v o g l i o n o e l i m i n a r e , p r o p r i o c o m e p e r u n a Q u e r y d i s e l e z i o n e .3 - S e l a q u e r y s i e f f e t t u a s u p i ù t a b e l l e , f a r e d o p p i o c l i c s u l l ’ a s t e r i s c o ( * ) p e r c i a s c u n a t a b e l l a d a l l a q u a l e s i v o g l i o n o e l i m i n a r e r e c o r d .4 - P e r u n ’ a n t e p r i m a d e l l e m o d i f i c h e , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n e Q u e r y d e l l a b a r r a d e g l i s t r u m e n t i ( o p p u r e , s c e g l i e r e i l c o m a n d o V i s u a l i z z a | V i s u a l i z z a z i o n e q u e r y ) .5 - C o r r e g g e r e l a q u e r y e v i s u a l i z z a r n e i l r i s u l t a t o f i n o a o t t e n e r e l a s e l e z i o n e d e i r e c o r d d a e l i m i n a r e .6 - P e r l ’ e s e c u z i o n e d e l l a Q u e r y d i e l i m i n a z i o n e , p o r t a r s i a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e f a r e c l i c s u l p u l s a n t e E s e g u i d e l l a b a r r a d e g l i s t r u m e n t i o p p u r e s c e g l i e r e i l c o m a n d o E s e g u i .7 - Q u a n d o i l p r o g r a m m a v i s u a l i z z a i l n u m e r o d e i r e c o r d c h e v e r r a n n o e l i m i n a t i , s c e g l i e r e S i s e s i v u o l e p r o c e d e r e o p p u r e N o p e r a n n u l l a r e l ’ o p e r a z i o n e .

1 0 . 8 . 1 6 Query di eliminazione

S e l a c a n c e l l a z i o n e d i r e c o r d i n s u c c e s s i o n e n o n è s t a t a i m p o s t a t a e s i d e s i d e r a e l i m i n a r e r e c o r d d a t a b e l l e l e g a t e d a u n a r e l a z i o n e d i t i p o U n o a m o l t i , s i d e v o n o e s e g u i r e d u e q u e r y d i e l i m i n a z i o n e , c o m e i l l u s t r a t o q u i d i s e g u i t o :1 - N e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y, f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e T i p o q u e r y d e l l a b a r r a d e g l i s t r u m e n t i e s c e g l i e r e Q u e r y d i e l i m i n a z i o n e . O p p u r e , s c e g l i e r e i l c o m a n d o Q u e r y | Q u e r y d i e l i m i n a z i o n e .2 - A g g i u n g e r e l e t a b e l l e c h e s i v o g l i o n o u s a r e n e l l a q u e r y .3 - N e l l a t a b e l l a d a l l a t o “ U n o ” d e l l a r e l a z i o n e , t r a s c i n a r e i l c a m p o o i c a m p i c h e s i d e s i d e r a n o u s a r e p e r i c r i t e r i d i s e l e z i o n e e d e f i n i r e i c r i t e r i c o m e d i c o n s u e t o .4 - N e l l a t a b e l l a ( o t a b e l l e ) d a l l a t o " M o l t i " d e l l a r e l a z i o n e , f a r e d o p p i o c l i c s u l l ’ a s t e r i s c o ( * ) .5 - V i s u a l i z z a r e u n ’ a n t e p r i m a d e i r i s u l t a t i d e l l a q u e r y e d e s e g u i r l a n e l m o d o c o n s u e t o . E s s a s i o c c u p a d e l l a c a n c e l l a z i o n e d e i r e c o r d d a l l a t o “ M o l t i ” d e l l a r e l a z i o n e .6 - T o r n a r e a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e d e l i m i n a r e d a l l a f i n e s t r a l e e v e n t u a l i t a b e l l e d a l l a t o “ M o l t i ” d e l l a r e l a z i o n e .V i s u a l i z z a r e u n ’ a n t e p r i m a d e i r i s u l t a t i d e l l a q u e r y e d e s e g u i r l a d i n u o v o

Page 27: Microsoft Office Access 2003 - Manuale (Italiano)[1]

27/32

©© 20032003

U n a q u e r y d i c r e a z i o n e t a b e l l a c r e a u n a t a b e l l a c o m p l e t a m e n t e n u o v a u t i l i z z a n d o i r i s u l t a t i d i u n a q u e r y P e r c r e a r e u n a q u e r y d i c r e a z i o n e t a b e l l a :1 - N e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y, f a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e V i s u a l i z z a z i o n e q u e r y d e l l a b a r r a d e g l i s t r u m e n t i . O p p u r e s c e g l i e r e Q u e r y | Q u e r y d i c r e a z i o n e t a b e l l a . 2 - S e l a t a b e l l a c h e s i v u o l e c r e a r e s i t r o v a n e l l o s t e s s o d a t a b a s e , s a l t a r e a l p a s s o 3 . S e l a t a b e l l a s i t r o v a i n u n d a t a b a s e d i v e r s o , s c e g l i e r e l’ o p z i o n e U n a l t r o d a t a b a s e , p r e m e r e i l t a s t o T a b e s p e c i f i c a r e l a p o s i z i o n e d i d i r e c t o r y e i l n o m e d e l d a t a b a s e .3 - N e l l ’ e l e n c o a d i s c e s a N o m e t a b e l l a , s c e g l i e r e l a t a b e l l a d i d e s t i n a z i o n e e f a r e c l i c s u O K . S e s i s c e g l i e i l n o m e d i u n a t a b e l l a e s i s t e n t e , A c c e s s s o v r a s c r i v e l a t a b e l l a .4 - A g g i u n g e r e t a b e l l e e c a m p i ; q u i n d i i m p o s t a r e i c r i t e r i p e r l a s e l e z i o n e d e i r e c o r d e d e i c a m p i p e r l a n u o v a t a b e l l a , p r o p r i o c o m e p e r u n a Q u e r y d i s e l e z i o n e . P e r u n ’ a n t e p r i m a d e l r i s u l t a t o d e l l e m o d i f i c h e e f f e t t u a t e , f a r e c l i c s u l p u l s a n t e V i s u a l i z z a z i o n e Q u e r y d e l l a b a r r a d e g l i s t r u m e n t i . C o r r e g g e r e l a q u e r y e v i s u a l i z z a r e i l r i s u l t a t o f i n o a o t t e n e r e l a s e l e z i o n e d e i r e c o r d c h e s i v o g l i o n o i n c l u d e r e n e l l a n u o v a t a b e l l a .5 - P e r e s e g u i r e l a q u e r y d i c r e a z i o n e t a b e l l a , p o r t a r s i n e l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y e f a r e c l i c s u l p u l s a n t e E s e g u i d e l l a b a r r a d e g l i s t r u m e n t i . S e n e l p a s s o 3 s i è s c e l t a u n a t a b e l l a e s i s t e n t e , i l p r o g r a m m a c h i e d e r à s e s i v o g l i a c o n t i n u a r e .6 - S c e g l i e r e S ì s e s i d e s i d e r a e l i m i n a r e l a v e c c h i a t a b e l l a e c o n t i n u a r e o p p u r e N o p e r t o r n a r e a l l a f i n e s t r a d e l l a s t r u t t u r a d e l l a q u e r y s e n z a c a n c e l l a r e l a t a b e l l a .

1 0 . 8 . 1 7 Query di creazione tabella

1 0 . 9 C r e a r e m a s c h e r e c o n l e Autocomposizioni M a s c h e r e U n a m a s c h e r a f o r n i s c e u n m e t o d o a l t e r n a t i v o p e r v i s u a l i z z a r e e la v o r a r e c o n i d a t i d e l l e t a b e l l e . D i v e r s a m e n t e d a l l a V i s u a l i z z a z i o n e F o g l i o d a t i , c h e v i s u a l i z z a s e m p r e i d a t i i n r i g h e e c o l o n n e , u n a m a s c h e r a p u òv i s u a l i z z a r e i d a t i i n q u a l s i a s i f o r m a t o . L ’ A u t o c o m p o s i z i o n e M a s c h e r a c o n s e n t e , d i c r e a r e r a f f i n a t e m a s c h e r e d i i m m i s s i o n e d a t i , s e m p l i c e m e n t e s c e g l i e n d o l o s t i l e d e s i d e r a t o e f a c e n d o a l c u n i c l i c c o n i l m o u s e

L e m a s c h e r e t a b u l a r i v i s u a l i z z a n o i c a m p i i n u n a r i g a o r i z z o n t a l e c o n e t i c h e t t e d i c a m p o i n c i m a a l l a m a s c h e r a . C i a s c u n a r i g a r a p p r e s e n t a u n n u o v o r e c o r d . L e m a s c h e r e t a b u l a r i s o n o l a s o l u z i o n e m i g l i o r e s e s i d e s i d e r a v i s u a l i z z a r e c a m p i d i d i m e n s i o n i c o n t e n u t e e s i v o g l i o n o v i s u a l iz z a r e s i m u l t a n e a m e n t e p iù r e c o r d .

1 0 . 9 . 1 Maschere tabulari

P e r c r e a r e u n a m a s c h e r a t r a m i t e l ’ A u t o c o m p o s i z i o n e M a s c h e r a :1 - I n i z i a r e d a u n a q u a l s i a s i d e l l e p o s i z i o n i e l e n c a t e q u i d i s e g u it o :

2 - F a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e de l l a b a r r a d e g l i s t r u m e n t i N u o v o o g g e t t o .

1 0 . 9 . 3 Uso dell’Autocomposizione per la creazione di una maschera

U n a m a s c h e r a d i f o g l i o d a t i v i s u a l i z z a i n i z i a l m e n t e i d a t i i n V is u a l i z z a z i o n e F o g l i o d a t i p iù o m e n o n e l l o s t e s s o m o d o i n c u i a p p a i o n o a l l ’ a p e r t u r a d i u n a t a b e l l a o d u r a n t e l ’ e s e c u z i o n e d i u n a q u e r y o p p u r e s e s i u s a i l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i V i s u a l i z z a z i o n e M a s c h e r a p e r p a s s a r e a l l a V i s u a l i z z a z i o n e F o g l i o d a t i i n u n a q u a l s i a s i m a s c h e r a . È p o s s i b i l e p a s s a r e d a l l a m a s c h e r a d i f o g l i o d a t i a l l a V i s u a l i z z a z i o n e M a s c h e r a s c e g l i e n d o i l c o m a n d o V i s u a l i z z a | V i s u a l i z z a z i o n e M a s c h e r a o p p u r e f a c e n d o c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i V i s u a l i z z a z i o n e M a s c h e r a e p o i s c e g l i e n d o V i s u a l i z z a z i o n e M a s c h e r a . I n V i s u a l i z z a z i o n e M a s c h e r a , i c a m p i a p p a i o n o s e c o n d o u n a d i s p o s i z i o n e t a b e l l a r e, m a s u o g n i p a g i n a d e l l a m a s c h e r a è v i s i b i l e u n s o l o r e c o r d .

1 0 . 9 . 2 Maschere di foglio dati

• P e r i m p o s t a r e l a p r o p r i a m a s c h e r a s u l l a b a s e d i u n a t a b e l l a s p e c i f i c a , i n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e , f a r e c l i c s u l p u l s a n t e T a b e l l e e d e v i d e n z i a r e i l n o m e d e l l a t a b e l l a . O p p u r e , a p r i r e l a t a b e l l a i n V i s u a l i z z a z i o n e F o g l i o d a t i . S e l a t a b e l l a p o s s i e d e u n f i l t r o e u n o r d i n a m e n t o a s s o c i a t o , l a n u o v a m a s c h e r a e r e d i t a a u t o m a t i c a m e n t e i l f i l t r o e l a s e q u e n z a d i o r d i n a m e n t o .• P e r i m p o s t a r e l a m a s c h e r a s u l l a b a s e d i u n a q u e r y s p e c i f i c a ( o d i u n f i l t r o s a l v a t o i n p r e c e d e n z a ) , i n i z i a r e d a l l a f i n e s t r a d a t a b a s e , c l i c c ar e s u l l a s c h e d aQ u e r y e d e v i d e n z i a r n e i l n o m e o a p r i r e l a q u e r y i n V i s u a l i z z a z i o n e F o g l i o d a t i o V i s u a l i z z a z i o n e S t r u t t u r a .

Page 28: Microsoft Office Access 2003 - Manuale (Italiano)[1]

28/32

©© 20032003

3 - S c e g l i e r e u n a d e l l e o p z i o n i s e g u e n t i n e l m e n u c h e c o m p a r e :

4 - N e l l ’ e l e n c o a d i s c e s a ( n e l l a p a r t e i n f e r i o r e d e l l a f i n e s t r a d i d i a l o g o N u o v a m a s c h e r a ) , s c e g l i e r e l a t a b e l l a o q u e r y i n b a s e a l l a q u a l e s i v u o l e i m p o s t a r e l a m a s c h e r a .5 - F a r e c l i c s u u n a d e l l e o p z i o n i c h e c o m p a i o n o n e l l ’ e l e n c o a c c a n t o a l l a f i n e s t r a d i d i a l o g o N u o v a m a s c h e r a e q u i n d i f a r e c l i c s u O K ; o p p u r e f a r e d o p p i o c l i c s u l l ’ o p z i o n e a p p r o p r i a t a . L e o p z i o n i s o n o :

6 - S e s i è s c e l t a l ’ A u t o c o m p o s i z i o n e m a s c h e r a n e l p a s s o 5 , c o m p a r e l a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e m a s c h e r a . A g g i u n g e r e t u t t i i c a m p i d i t u t t e l e t a b e l l e o q u e r y d e s i d e r a t e , q u i n d i f a r e c l i c s u A v a n t i .7 - S e s o n o s t a t i s c e l t i c a m p i d a p iù t a b e l l e , m a l e r e l a z i o n i t r a l e t a b e l l e n o n s o n o s t a t e a n c o r a de f i n i t e , l ’a u t o c o m p o s i z i o n e v i s u a l i z z a u n a f i n e s t r a d i d i a l o g o . F a r e c l i c s u O K s e s i d e s i d e r a u s c i r e d a l l ’ a u t o c o m p o s i z i o n e e d e f i n i r e l e r e l a z i o n i o p p u r e f a r e c l i c s u A n n u l l a p e r t o r n a r e a l p a s s o 6 e r i m u o v e r e a l c u n i c a m p i d a l l a m a s c h e r a .8 - N e l l a f i n e s t r a d i d i a l o g o s u c c e s s i v a , i l p r o g r a m m a r i c h i e d e d i s c e g l i e r e u n l a y o u t A c o l o n n e , T a b u l a r e , F o g l i o d a t i , G i u s t i f i c a t o , M a s c h e r a c o n s o t t o m a s c h e r e o m a s c h e r e c o l l e g a t e , s e c o n d o l e t a b e l l e e i c a m p i c h e s o n o s t a t i s e l e z i o n a t i n e l p a s s o 6 . S c e g l i e r e l e o p z i o n i d e s i d e r a t e e f a r e c l i c s u A v a n t i p e r p a s s a r e a l l a f i n e s t r a d i d i a l o g o s u c c e s s i v a .9 - S c e g l i e r e u n o s t i l e f a c e n d o c l i c s u u n o d e g l i s t i l i d i s p o n i b i l i e q u i n d i f a r e c l i c s u A v a n t i . A c c e t t a r e o m o d i f i c a r e i l t i t o l o s u g g e r i t o n e l l ’ u l t i m a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e M a s c h e r a . S c e g l i e r e l ’ o p z i o n e c h e c o n s e n t e l a v i s u a l i z z a z i o n e o l ’ i m m i s s i o n e d i i n f o r m a z i o n i , q u i n d i f a r e c l i c s u F i n e . A c c e s s c r e a l a m a s c h e r a e l a v i s u a l i z z a i n V i s u a l i z z a z i o n e M a s c h e r a .1 0 - ( O p z i o n a l e ) R i d i m e n s i o n a r e o i n g r a n d i r e l a m a s c h e r a c r e a t a a u t om a t i c a m e n t e d a A c c e s s . S e l a m a s c h e r a n o n è i n g r a n d i t a , s i p u ò s c e g l i e r e i l c o m a n d o F i n e s t r a | A d a t t a a l l a m a s c h e r a p e r f a r e i n m o d o c h e l a f i n e s t r a d e l l a m a s c h e r a s i a d a t t i a i c a m p i c o n t e n u t i n e l l a m a s c h e r a .

S e l ’a u t o c o m p o s i z i o n e n o n h a s a l v a t o l a m a s c h e r a a u t o m a t i c a m e n t e , s i d e v e p r o v v e d e r e a l s a l v a t a g g i o s e s i i n t e n d e u t i l i z z a r l a s u c c e s s i v a m e n t e . E c c o c o m e :1 - P e r s a l v a r e e c h i u d e r e l a m a s c h e r a , s c e g l i e r e i l c o m a n d o F i l e | C h i u d i o p p u r e p r e m e r e C t r l + W o f a r e c l i c s u l p u l s a n t e C h i u d i n e l l ’ a n g o l o s u p e r i o r e d e s t r o d e l l a m a s c h e r a ; q u i n d i f a r e c l i c s u Sì. O p p u r e , s e s i v o g l i o n o s a l v a r e g l i u l t i m i c a m b i a m e n t i p r e m e r e C t r l + S o p p u r e s c e g l i e r e i l c o m a n d o F i l e | S a l v a o f a r e c l i c s u l p u l s a n t e S a l v a d e l l a b a r r a d e g l i s t r u m e n t i .2 - N e l p r i m o s a l v a t a g g i o d i u n a m a s c h e r a c h e n o n è s t a t a m a i s a l v a t a i n p r e c e d e n z a , q u a n d o r i c h i e s t o d a l p r o g r a m m a , i m m e t t e r e u n n o m e e f a r e c l i c s u O K .

1 0 . 9 . 4 Salvataggio di una maschera

U n a m a s c h e r a c h i u s a p u ò e s s e r e r i a p e r t a n e l m o d o s e g u e n t e :1 - I n i z i a r e d a l l a f i n e s t r a d a t a b a s e e f a r e c l i c s u l l a s c h e d a M a s c h e r e .2 - P e r a p r i r e u n a m a s c h e r a i n V i s u a l i z z a z i o n e M a s c h e r a ( c o n i d a t i v i s u a l i z z a t i ) , f a r e d o p p i o c l i c s u l n o m e d i m a s c h e r a d e s i d e r a t o o p p u r e e v i d e n z i a r l o e f a r e c l i c s u l p u l s a n t e A p r i . P e r a p r i r e u n a m a s c h e r a i n V i s u a l i z z a z i o n e S t r u t t u r a ( n e l l a q u a l e è p o s s i b i l e m o d i f i c a r e l a s t r u t t u r a d e l l a m a s c h e r a ) , e v i d e n z i a r e i l n o m e d e l l a m a s c h e r a e f a r e c l i c s u S t r u t t u r a .

1 0 . 9 . 5 A p e r t u r a e u s o d i u n a m a s c h e r a

• M a s c h e r a s t a n d a r d - C r e a u n a m a s c h e r a a u n a s o l a c o l o n n a u t i l i z z a n d o i l m o d e l l o i n d i c a t o n e l l a c a s e l l a M o d e l l o m a s c h e r a d e l l a s c h e d a M a s c h e r e / r e p o r t d e l l a f i n e s t r a d i d i a l o g o O p z i o n i (S t r u m e n t i | O p z i o n i | M a s c h e r e / r e p o r t ) . D o p o a v e r s c e l t o q u e s t a o p z i o n e , p a s s a r e d i r e t t a m e n t e a l p a s s o 1 1 : s i è t e r m i n a t o , L ’ u s o d e l l ’ A u t o c o m p o s i z i o n e m a s c h e r a s t a n d a r d h a s e n s o s e n e l p a s s o 1 è s t a t a s c e l t a u n a t a b e l l a o q u e r y .• N u o v a m a s c h e r a - A p r e l a f i n e s t r a d i d i a l o g o N u o v a m a s c h e r a .

• V i s u a l i z z a z i o n e S t r u t t u r a - A p r e u n a m a s c h e r a v u o t a i n V i s u a l i z z a z i o n e S t r u t t u r a .• A u t o c o m p o s i z i o n e m a s c h e r a - A p r e l ’ a u t o c o m p o s i z i o n e m a s c h e r a . A l s u o i n t e r n o è p o s s i b i l e s c e g l i e r e t a b e l l e , q u e r y e c a m p i d a i n c l u d e r e n e l l a m a s c h e r a , s c e g l i e r e u n o s t i l e p e r l a m a s c h e r a e s p e c i f i c a r e u n t i t o l o e u n n o m e p e r l e p r o p r i e m a ­ s c h e r e.• M a s c h e r a s t a n d a r d : a c o l o n n e - C r e a u n a m a s c h e r a a c o l o n n e c o n t u t t i i c a m p i d e l l a t a b e l l a o q u e r ys c e l t a .• M a s c h e r a s t a n d a r d : t a b e l l a r e - C r e a u n a m a s c h e r a t a b e l l a r e.• M a s c h e r a s t a n d a r d : f o g l i o d a t i - C r e a u n a m a s c h e r a d i d a t a b a s e , s e n z a p o r r e u l t e r i o r i d o m a n d e .• A u t o c o m p o s i z i o n e G r a f i c o - C r e a u n a m a s c h e r a c h e v i s u a l i z z a u n g r a f i c o a u t o n o m o d e i d a t i d e l l a t a b e l l a o d e l l a q u e r y.• A u t o c o m p o s i z i o n e T a b e l l a p i v o t - C r e a u n a m a s c h e r a i n g r a d o d i v i s u a l i z z a r e u n a t a b e l l a p i v o t d iM i c r o s o f t E x c e l .

Page 29: Microsoft Office Access 2003 - Manuale (Italiano)[1]

29/32

©© 20032003

P e r l a m a g g i o r p a r t e d e g l i u t e n t i , l a s t a m p a d e i d a t i m e m o r i z z a t i i n t a b e l l e o d e l l e i n f o r m a z i o n i o t t e n u t e c o n l eq u e r y è p a r t e e s s e n z i a l e d e l l ’ u s o d i u n d a t a b a s e . L ’ A u t o c o m p o s i z i o n e r e p o r t d i A c c e s s f o r n i s c e s t r u m e n t i s e m p l i c i e p o t e n t i p e r l a c r e a z i o n e r a p i d a d i r e p o r t i n n u m e r o s i f o r m a t i p r e d e f i n i t i . E s s a è i n g r a d o d i c r e a r e v a r i t i p i d i r e p o r t c h e v i s u a l i z z a n o c a m p i d i u n a o p i ù t a b e l l e e / o q u e r y :

L e p r o c e d u r e p e r l a c r e a z i o n e d i r e p o r t c o n l ’ A u t o c o m p o s i z i o n e d i p e n d o n o d a l r e p o r t s c e l t o . I p a s s i s o n o :1 - I n i z i a r e d a l l e p o s i z i o n i s p e c i f i c a t e q u i d i s e g u i t o .

2 - F a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e N u o v o o g g e t t o d e l l a b a r r a d e g l i s t r u m e n t i . C o m p a r e u n m e n u , c o n l e o p z i o n i M a s c h e r a s t a n d a r d , R e p o r t s t a n d a r d , N u o v a t a b e l l a , N u o v a q u e r y , N u o v a m a s c h e r a , N u o v o r e p o r t , N u o v a m a c r o e N u o v o m o d u l o .3 - S c e g l i e r e u n a d e l l e o p z i o n i s e g u e n t i :

6 - S e n e l p a s s o 5 è s t a t a s c e l t a l ’ A u t o c o m p o s i z i o n e R e p o r t , c o m p a r e l a p r i m a f i n e s t r a d i d i a l o g od e l l ’ A u t o c o m p o s i z i o n e R e p o r t . A g g i u n g e r e i c a m p i d e s i d e r a t i d i t a b e l l e o q u e r y, q u i n d i c l i c c a r e s u A v a n t i .7 - S e s o n o s t a t i s c e l t i c a m p i d a p iù t a b e l l e , m a n o n s o n o s t a t e a n c o r a d e f i n i t e l e r e l a z i o n i t r a l e t a b e l l e ,l ’a u t o c o m p o s i z i o n e v i s u a l i z z e r à u n a f i n e s t r a d i d i a l o g o . F a r e c l i c s u O K s e s i d e s i d e r a u s c i r ed a l l ’ a u t o c o m p o s i z i o n e e d e f i n i r e l e r e l a z i o n i o p p u r e f a r e c l i c s u A n n u l l a p e r t o r n a r e a l p a s s o 6 e r i m u o v e r e a l c u n i c a m p i d a l r e p o r t . N e l l e f i n e s t r e d i d i a l o g o s u c c e s s i v e , s i a v rà l a p o s s i b i l i t à d i p e r s o n a l i z z a r e i l r e p o r t . L e o p z i o n i d i s p o n i b i l i d i p e n d o n o d a l l e t a b e l l e e d a i c a m p i s e l e z i o n a t i n e l p a s s o 6 e d a l l a s c e l t a o m e n o d i r a g g r u p p a r e i d a t i .8 - I n c i a s c u n a f i n e s t r a d i d i a l o g o , s c e g l i e r e l e o p z i o n i d e s i d e r a t e e p o i f a r e c l i c s u A v a n t i p e r p a s s a r e a l l a f i n e s t r a d i d i a l o g o s u c c e s s i v a .9 - S c e g l i e r e u n o s t i l e f a c e n d o c l i c s u u n o d e g l i s t i l i d i s p o n i b i l i e f a r e c l i c s u A v a n t i .

• R e p o r t a c o l o n n e ( v e r t i c a l e ) - I n u n r e p o r t a c o l o n n e o v e r t i c a l e , c i a s c u n c a m p o c o m p a r e i n u n a r i g a s e p a r a t a , c o n u n ’ e t i c h e t t a a l l a s u a s i n i s t r a .• R e p o r t t a b e l l a r e - Un r e p o r t t a b e l l a r e v i s u a l i z z a i c a m p i i n u n a r i g a o r i z z o n t a l e c o n l e e t i c h e t t e d i c a m p o n e l l a p a r t e s u p e r i o r e d e l r e p o r t . O g n i r i g a r a p p r e s e n t a u n r e c o r d d i v e r s o .• G r u p p i , t o t a l i e r e p o r t r i e p i l o g a t i v i - I r e p o r t d i r a g g r u p p a m e n t o / t o t a l i z z a z i o n e o r g a n i z z a n o i d a t i i n g r u p p i c h e a p p a i o n o i n f o r m a t o t a b e l l a r e. A r i c h i e s t a , l ’ A u t o c o m p o s i z i o n e c a l c o l a s o m m a , m e d i a , v a l o r i m i n i m o e m a s s i m o p e r i c a m p i n u m e r i c i e d i t i p o v a l u t a d i c i a s c u n g r u p p o e v i s u a l i z z a s o m m e e p e r c e n t u a l i d e i t o t a l i . I r e p o r t r i e p i l o g a t i v i s o n o c o m e i r e p o r t d i r a g g r u p p a m e n t o / t o t a l i z z a z i o n e, c o n l a s o l a d i f f e r e n z a c h e o m e t t o n o i r e c o r d d i d e t t a g l i o p r e s e n t i i n c i a s c u n g r u p p o .• G r a f i c i - I G r a f i c i ( o d i a g r a m m i ) c o n v e r t o n o i n u m e r i i n i m m a g i n i g r a f i c h e s i g n i f i c a t i v e . I n d i p e n d e n t e m e n t e d a l f a t t o c h e s i v i s u a l i z z i i l g r a f i c o i n u n a m a s c h e r a o i n u n r e p o r t , l a r a p p r e s e n t a z i o n e g r a f i c a d e i d a t i è e s s e n z i a l m e n t e l a s t e s s a .• E t i c h e t t e p o s t a l i - E p o s s i b i l e c r e a r e e t i c h e t t e p o s t a l i d a s t a m p a r e s u i f o g l i s t a n d a r d d i e t i c h e t t e A v e r y .

• P e r i m p o s t a r e u n r e p o r t s u l l a b a s e d i u n a t a b e l l a s p e c i f i c a , i n i z i a r e d a l l a f i n e s t r a d el d a t a b a s e , f a r e c l i c s u l p u l s a n t e T a b e l l e e d e v i d e n z i a r e i l n o m e d e l l a t a b e l l a . O p p u r e a p r i r e u n a t a b e l l a i n V i s u a l i z z a z i o n e F o g l i o d a t i . S e a l l a t a b e l l a è a s s o c i a t o u n f i l t r o o u n o r d i n a m e n t o , i l n u o v o r e p o r t e r e d i t a a u t o m a t i c a m e n t e i l f i l t r o e l a s e q u e n z a d i o r d i n a m e n t o .• P e r i m p o s t a r e u n r e p o r t s u l l a b a s e d i u n a q u e r y s p e c i f i c a ( o d i u n f i l t r o s a l v a t o p r e c e d e n t e m e n t e ) , i n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e , f a r e c l i c s u l l a s c h e d a Q u e r y e d e v i d e n z i a r e i l n o m e d e l l a q u e r y. O p p u r e a p r i r e u n a q u e r y i n V i s u a l i z z a z i o n e F o g l i o d a t i o i n V i s u a l i z z a z i o n e S t r u t t u r a .

• R e p o r t s t a n d a r d - C r e a u n r e p o r t a c o l o n n a s i n g o l a u t i l i z z a n d o i l m o d e l l o d e n o m i n a t o n e l l a c a s e l l a M o d e l l o r e p o r t d e l l a s c h e d a M a s c h e r e / r e p o r t d e l l a f i n e s t r a d i d i a l o g o O p z i o n i (S t r u m e n t i | O p z i o n i | M a s c h e r e / r e p o r t ) . D o p o a v e r s c e l t o q u e s t a o p z i o n e , p a s s a r e d i r e t t a m e n t e a l p a s s o 1 1 : s i è t e r m i n a t o ! L ’ u s o d e l l ’ o p z i o n e R e p o r t s t a n d a r d h a s e n s o s o l o s e n e l p a s s o 1 è s t a t a s c e l t a u n a t a b e l l a o u n a q u e r y .• N u o v o r e p o r t - A p r e l a f i n e s t r a d i d i a l o g o N u o v o r e p o r t .4 - N e l l ’ e l e n c o a d i s c e s a n e l l a p a r t e i n f e r i o r e d e l l a f i n e s t r a d i d i a l o g o N u o v o r e p o r t , s c e g l i e r e l a t a b e l l a oq u e r y s u l l a q u a l e s i v u o l e b a s a r e i l r e p o r t .5 - C l i c c a r e s u u n a d e l l e o p z i o n i s e g u e n t i n e l l ’ e l e n c o p r e s e n t e n e l l a p a r t e s u p e r i o r e d e l l a f i n e s t r a N u o v or e p o r t e q u i n d i s u O K ( o p p u r e f a r e d o p p i o c l i c s u l l ’ o p z i o n e a p p r o p r i a t a ) . L e o p z i o n i d i s p o n i b i l i s o n o :• A u t o c o m p o s i z i o n e R e p o r t - A p r e l ’ A u t o c o m p o s i z i o n e R e p o r t . D a q u i s i p o t r a n n o s c e g l i e r e t a b e l l e , q u e r ye c a m p i d a i n c l u d e r e n e l r e p o r t , i r a g g r u p p a m e n t i , t o t a l i z z a z i o n i e r i e p i l o g h i d e l r e p o r t , u n o s t i l e p e r i lr e p o r t , o l t r e a s p e c i f i c a r e u n t i t o l o e u n n o m e p e r i l r e p o r t .• R e p o r t s t a n d a r d : A c o l o n n e - C r e a u n r e p o r t a c o l o n n e c o n t u t t i i c a m p i d e l l a t a b e l l a o q u e r y s c e l t a .• R e p o r t s t a n d a r d : T a b u l a r e - C r e a u n r e p o r t t a b u l a r e .• A u t o c o m p o s i z i o n e G r a f i c o - C r e a u n r e p o r t c o n u n g r a f i c o d e i d a t i d i u n a t a b e l l a o d i u n a q u e r y.• A u t o c o m p o s i z i o n e E t i c h e t t a - C r e a e t i c h e t t e p o s t a l i u t i l i z z a n d o i d a t i d i u n a t a b e l l a o d i u n a q u e r y.

1 0 . 1 0 . 1 Uso dell’Autocomposizione per la creazione di report

1 0 . 1 0 C r e a r e r e p o r t c o n l ’ A u t o c o m p o s i z i o n e R e p o r t

Page 30: Microsoft Office Access 2003 - Manuale (Italiano)[1]

30/32

©© 20032003

1 0 - A c c e t t a r e o m o d i f i c a r e i l t i t o l o s u g g e r i t o n e l l ’ u l t i m a f i n e s t r a d i d i a l o g o d e l l ’ A u t o c o m p o s i z i o n e R e p o r t . S e l e z i o n a r e l ’ o p z i o n e A n t e p r i m a d e l r e p o r t , q u i n d i f a r e c l i c s u F i n e .A c c e s s c r e a i l r e p o r t e l o v i s u a l i z z a i n u n a f i n e s t r a d i a n t e p r i m a d i s t a m p a . Q u a n d o il r e p o r t c o m p a r e i n a n t e p r i m a d i s t a m p a , s i p u ò :

S e l ’ A u t o c o m p o s i z i o n e R e p o r t n o n h a s a l v a t o a u t o m a t i c a m e n t e i l r e p o r t , s i d o v r à r i c o r d a r e d i s a l v a r l o p e r u n u s o s u c c e s s i v o , P e r s a l v a r e i l r e p o r t :

• S t a m p a r e i l r e p o r t . P e r s t a m p a r e s e n z a a p r i r e l a f i n e s t r a d i d i a l o g o S t a m p a , f a r e c l i c s u l p u l s a n t e S t a m p ad e l l a b a r r a d e g l i s t r u m e n t i . P e r s t a m p a r e d a l l a f i n e s t r a d i d i a l o g o S t a m p a , p r e m e r e C t r l + P o s c e g l i e r e File |

S t a m p a , s c e g l i e r e l e o p z i o n i d i s t a m p a d e s i d e r a t e e q u i n d i f a r e c l i c su O K .• S a l v a r e i l r e p o r t i n u n f i l e d i M i c r o s o f t W o r d e a p r i r l o i n W o r d . F a r e c l i c s u l si m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i C o l l e g a m e n t i O f f i c e e s c e g l i e r e P u b b l i c a c o n M S W o r d .• S a l v a r e i l r e p o r t i n u n f i l e d i M i c r o s o f t E x c e l e a p r i r l o i n E x c e l . F a r e c l i c s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i C o l l e g a m e n t i O f f i c e e s c e g l i e r e A n a l i z z a c o n M S E x c e l .• I n v i a r e i l r e p o r t a l p r o p r i o p r o g r a m m a d i p o s t a e l e t t r o n i c a• S c e g l i e r e i l c o m a n d o F i l e | I n v i a, s c e g l i e r e i l f o r m a t o d e s i d e r a t o p e r i l f i l e d i m e s s a g g i o e f a re c l i c s u O K .• Q u a n d o r i c h i e s t o d a l p r o g r a m m a , e n t r a r e i n c o m u n i c a z i o n e , q u i n d i i n v i a r e i l m e s s a g g i o c o n l e t e c n i c h e c o n s u e t e d e l l a p o s t a e l e t t r o n i c a i n r e t e .• C h i u d e r e l a f i n e s t r a d i a n t e p r i m a d i s t a m p a e p o r t a r s i i n V i s u a l i z z a z i o n e S t r u t t u r a , n e l l a q u a l e s i p u òm o d i f i c a r e l a s t r u t t u r a d e l r e p o r t . F a r e c l i c s u l p u l s a n t e C h i u d i d e l l a b a r r a d e g l i s t r u m e n t i o p r e m e r eC t r l + W .• S a l v a r e e c h i u d e r e i l r e p o r t , s c e g l i e n d o F i l e | C h i u d i o p r e m e n d o C t r l + W .

1 0 . 1 0 . 2 Salvataggio di un report

• S e s i d e s i d e r a s a l v a r e i l r e p o r t e c h i u d e r l o , t o r n a r e i n V i s u a l i z z a z i o n e S t r u t t u r a f a c e n d o c l i c s u l p u l s a n t e C h i u d i n e l l a b a r r a d e g l i s t r u m e n t i A n t e p r i m a d i s t a m p a . Q u i n d i s c e g l i e r e F i l e | C h i u d i o p p u r e p r e m e r eC t r l + W e f a r e c l i c s u S ì .• S e s i d e s i d e r a n o s a l v a r e s o l o l e u l t i m e m o d i f i c h e , p r e m e r e C t r l + S o s c e g l i e r e i l c o m a n d o F i l e | S a l v ao p p u r e f a r e c l i c s u l p u l s a n t e d e l l a b a r r a d e g l i s t r u m e n t i S a l v a .

P e r r i a p r i r e u n r e p o r t c h e è s t a t o p r e c e d e n t e m e n t e c h i u s o e s a l v a t o .1 - I n i z i a r e n e l l a f i n e s t r a d e l d a t a b a s e e f a r e c l i c s u l l a s c h e d a R e p o r t .2 - P e r a p r i r e u n r e p o r t i n a n t e p r i m a d i s t a m p a , f a r e d o p p i o c l i c s u l n o m e d i r e p o r t d e s i d e r a t o o p p u r e e v i d e n z i a r l o e f a r e c l i c s u l p u l s a n t e A n t e p r i m a . P e r a p r i r e u n r e p o r t i n V i s u a l i z z a z i o n e S t r u t t u r a ( n e l l a q u a l e è p o s s i b i l e m o d i f i c a r e l a s t r u t t u r a d e l r e p o r t ) , e v i d e n z i a r e i l n o m e d e l r e p o r t e f a r e c l i c s u S t r u t t u r a .

1 0 . 1 0 . 3 Apertura di un report

È p o s s i b i l e c r e a r e e t i c h e t t e p o s t a l i p e r l a s t a m p a s u f o g l i s t a n d a r d d i e t i c h e t t e . P e r c r e a r e e t i c h e t t e p o s t a l i u t i l i z z a n d o l ’ A u t o c o m p o s i z i o n e r e p o r t :1 - I n i z i a r e d a l l a f i n e s t r a d e l d a t a b a s e o p p u r e i n V i s u a l i z z a z i o n e F o g l i o d a t i d e l l a t a b e l l a o q u e r y c o m e i l l u s t r a t o i n p r e c e d e n z a .2 - C l i c c a r e s u l s i m b o l o d i e l e n c o a d i s c e s a a c c a n t o a l p u l s a n t e N u o v o o g g e t t o d e l l a b a r r a d e g l i s t r u m e n t i e s c e g l i e r e R e p o r t .3 - F a r e c l i c s u l p u l s a n t e A u t o c o m p o s i z i o n e e t i c h e t t e d e l l a f i n e s t r a d i d i a l o g o N u o v o r e p o r t . Q u i n d i , u t i l i z z a r e l ’e l e n c o a d i s c e s a n e l l a p a r t e i n f e r i o r e d e l l a f i n e s t r a d i d i a l o g o p e r s c e g l i e r e l a t a b e l l a o q u e r y s u c u i b a s a r e i lr e p o r t . F a r e c l i c s u O K .4 - S c e g l i e r e f o r m a t o d i e t i c h e t t a , s i s t e m a d i m i s u r a e t i p o d i e t i c h e t t a . S e s e r v e , c l i c c a r e s u P e r s o n a l i z z a n e l l a f i n e s t r a d i d i a l o g o , c r e a r e u n f o r m a t o d i e t i c h e t t a p e r s o n a l i z z at o e q u i n d i c l i c c a r e s u C h i u d i o a t t i v a r e l ’ o p z i o n e M o s t r a d i m e n s i o n i p e r s o n a l i z z a t e e s c e g l i e r e u n f o r m a t o . C l i c c a r e s u A v a n t i p e r c o n t i n u a r e .5 - Q u a n d o i l p r o g r a m m a l o r i c h i e d e , s e l e z i o n a r e n o m e , d i m e n s i o n e , s p e s s o r e e c o l o r e d e l c a r a t t e r e . S i p u òa n c h e s e l e z i o n a r e o d e s e l e z i o n a r e c o r s i v o o s o t t o l i n e a t o . P e r c o n t i n u a r e , f a r e c l i c s u A v a n t i .6 - N e l l a f i n e s t r a d i d i a l o g o s c e g l i e r e i c a m p i c h e s i v o g l i o n o i n se r i r e n e l l ’ e t i c h e t t a . P e r a g g i u n g e r e u n c a m p o , p o s i z i o n a r e i l c u r s o r e n e l r i q u a d r o P r o t o t i p o d i e t i c h e t t a e f a re d o p p i o c l i c s u u n c a m p o d e l l ’ e l e n c o C a m p i d i s p o n i b i l i . È p o s s i b i l e d i g i t a r e a n c h e u n t e s t o o p r e m e r e I n v i o n e l l a p o s i z i on e d e l c u r s o r e . P e r e l i m i n a r e c a m p i o t e s t o d a l r i q u a d r o P r o t o t i p o d i e t i c h e t t a , s e l e z i o n a r e i l t e s t o c o n i l m o u s e e p r e m e r e i l t a s t o C a n e . P e r c o n t i n u a r e , f a r e c l i c s u A v a n t i .7 - S c e g l i e r e i c a m p i n e l l ’ o r d i n e i n c u i s i d e s i d e r a c h e v e n g a n o d i s p o s t i i d a t i e f a r e c l i c s u A v a n t i .8 - S p e c i f i c a r e u n n o m e p e r i l r e p o r t o a c c e t t a r e i l n o m e s e l e z i o n a t o n e l l a f i n e s t r a d i d i a l o g o f i n a l e . I l n o m e d e v e e s s e r e u n i v o c o , p o i c h é l ’ A u t o c o m p o s i z i o n e E t i c h e t t a n o n c o n s e n t e d i s o v r a s c r i v e r e u n r e p o r t d i e t i c h e t t e p o s t a l i g ià e s i s t e n t e . S c e g l i e r e a l t r e o p z i o n i s e c o n d o l e e s i g e n z e e f a r e c l i c s u F i n e .A c c e s s c r e a i l r e p o r t d i e t i c h e t t e p o s t a l i e l o v i s u a l i z z a s u l l o s c h e r m o .

1 0 . 1 0 . 4 Creazione di etichette postali

Page 31: Microsoft Office Access 2003 - Manuale (Italiano)[1]

31/32

©© 20032003

1 0 . 1 1 . 2 Tipi di dati

1 0 . 1 1 A p p e n d i c e

c o n s e n t e l a c r e a z i o n e d i u n e l e n c o d e v e è p o s s i b i l e s e l e z i o n a r e u n v a l o r e p e r o g n i r e c o r d .

R i c e r c a G u i d a t a

C o l l e g a m e n t o a i n d i r i z z i U R LC o l l e g a m e n t o I p e r t e s t u a l e

O g g e t t o , I m m a g i n e c o l l e g a t o o i n c o r p o r a t o i n u n a t a b e l l a A c c e s sO g g e t t o O L E

V a l o r i S ì / N o o p p u r e V e r o / F a l s oS ì / N o

N u m e r o p r o g r e s s i v o u n i v o c o g e s t i t o d a A c c e s sC o n t a t o r e

U t i l e p e r E u r o e a l t r e m o n e t e . P r e c i s i o n e 1 5 c i f r e + 4 d o p o l a v i r g o l aV a l u t a

d a t e e o r a r i c o m p r e s i t r a 1 0 0 e 9 9 9 9 . N e l l ' i n s e r i r e i d a t i d i u n c a m p o D a t a o c c o r r e f a r e a t t e n z i o n e , A c c e s s r i c o n o s c e 1 / 1 / 0 2 c o m e 1 g e n n a i o 0 0 0 2 . P e r e v i t a r e s p i a c e v o l i s o r p r e s e o c c o r r e i n s e r i r e 0 1 / 0 1 / 2 0 0 2

D a t a e o r a

n u m e r i s u c u i d e v o n o e s s e r e e s e g u i t i c a l c o l iN u m e r i c o

T e s t o m o l t o l u n g o c o n c a r a t t e r i a l f a n u m e r i c i , m a x 6 5 . 5 3 5M e m o

C a r a t t e r i a l f a n u m e r i c i ( n o m i , i n d i r i z z i , c a p, . . . ) , m a x 2 5 5T e s t o

1 0 . 1 1 . 1 B a r r a d e g l i s t r u m e n t i f o r m a t t a z i o n e

A p p l i c a i l c o l o r e d i s f o n d o a l c o n t r o l l o

A l l i n e a i l t e s t o a d e s t r a

A l l i n e a i l t e s t o a l c e n t r o

A l l i n e a i l t e s t o a s i n i s t r a

M o d i f i c a l ' a s p e t t o d e l c o n t r o l l o ( o m b r a , 3 D , e c c )

M o d i f i c a l o s p e s s o r e d e l b o r d o d e l c o n t r o l l o

A p p l i c a i l c o l o r e a l b o r d o d e l c o n t r o l l o

A p p l i c a i l c o l o r e a l c a r a t t e r e

A p p l i c a l o s t i l e s o t t o l i n e a t o

A p p l i c a l o s t i l e c o r s i v o

A p p l i c a l o s t i l e g r a s s e t t o

M o d i f i c a l a d i m e n s i o n e d e l c a r a t t e r e

S e l e z i o n a i l t i p o d i c a r a t t e r e

O g g e t t o s e l e z i o n a t o o d a s e l e z i o n a r e

Page 32: Microsoft Office Access 2003 - Manuale (Italiano)[1]

32/32

©© 20032003

1 0 . 1 1 . 5 Operatori

E s e m p i oS i g n i f i c a t oO p e r a t o r e

< 2M i n o r e< v a l o r e

> = 2M a g g i o r e o u g u a l e> = v a l o r e

> 2M a g g i o r e> v a l o r e

L i k e " * / 0 3 / * "

l i k e " a * "

b e t w e e n 2 a n d 5

n o t " P r a t o"

" A g r u m i " O R " P r a t o "

> = # 0 1 / 0 1 / 2 0 0 1 # A N D < = # 3 1 / 1 2 / 2 0 0 1 #

< > 2

< = 2

= 2

T u t t e l e d a t e i n i z i a n o n e l m e s eL i k e * / m e s e / * "

I v a l o r i i n i z i a n o c o n l a l e t t e r a s p e c i f i c a t a

L i k e “ l e t t e r a * "

I v a l o r i s o n o c o m p r e s i t r a v a l o r e 1 e v a l o r e 2

B e t w e e n v a l o r e 1 a n d v a l o r e 2

I l c a m p o n o n c o n t i e n e v a l o r iI s N u l l

L a c o n d i z i o n e n o n d e v e e s s e r e v e r i f i c a t a

N o t c o n d i z i o n e

A l m e n o u n a c o n d i z i o n e d e v e e s s e r e v e r i f i c a t a

c o n d i z i o n e 1 o r c o n d i z i o n e 2

E n t r a m b e l e c o n d i z i o n i d e v o n o e s s e r e v e r i f i c a t e

c o n d i z i o n e 1 a n d c o n d i z i o n e 2

D i v e r s o< > v a l o r e

M i n o r e o u g u a l e< = v a l o r e

U g u a l e= v a l o r e

1 0 . 1 1 . 4 T a s t i d i s c e l t a r a p i d a

P r i m o c a m p o r e c o r d c o r r e n t eH O M E

U l t i m o c a m p o r e c o r d c o r r e n t eF I N E

P r i m o c a m p o d e l p r i m o r e c o r dC T R L + H o m e

U l t i m o c a m p o d e l l ' u l t i m o r e c o r dC T R L + F i n e

Z o o m : v i s u a l i z z a l ' i n e r o c o n t e n u t o d e l c a m p o i n u n a f i n e s t r a S H I F T + F 2

S e l e z i o n a i l c o n t e n u t o d i u n c a m p oF 2

S e l e z i o n a t u t t a l a t a b e l l aC T R L + A

C a m p o p r e c e d e n t eS H I F T + T A B

C a m p o s u c c e s s i v oT A B

C o p i a n e l c a m p o i l c o n t e n u t o d e l c a m p o c h e s i t r o v a i m m e d i a t a m e nt e s o p r aC T R L + '

1 0 . 1 1 . 3 P r o p r i e t à d e i c a m p i

S e i m p o s t a t o s u S ì o b b l i g h e r à l ' u t e n t e a i n s e r i r e s e m p r e u n v a l o r e n e l c a m p oR i c h i e s t o

I n d i c a p e r i c a m p i n u m e r i c i e v a l u t a i l n u m e r o d i c i f r e d e c i m a l iP o s i z i o n i d e c i m a l i

V a l o r e i n s e r i t o a u t o m a t i c a m e n t e o g n i v o l t a c h e v i e n e c r e a t o u n nu o v o r e c o r dV a l o r e p r e d e f i n i t o

N o m e v i s u a l i z z a t o c o m e t i t o l o d e l l a c o l o n n a . U t i l e p e r c h è i l n o m e d e l c a m p o n o r m a l m e n t e n o n h a s p a z i b i a n c h i e s o p r a t t u t t o p e r l a c r e a z i o n e d e l l e m a s c h e r e e d e i r e p o r t

E t i c h e t t a

I n d i c a l ' a s p e t t o d e i d a t iF o r m a t o

L u n g h e z z a m a s s i m a d i u n c a m p o d i t e s t o o n u m e r i c o . L i m i t a l a d i m e n s i o n e d e l d a t a b a s e

D i m e n s i o n e c a m p o