Posts Tagged 'Modules'

Display a message of greeting

Monday, January 14th, 2008 |

Through a small code we can welcome the user depending on the time you open the form. In this example we can see three different messages:
1-Morning Until 12:00;
2-Up at 19:00 Good afternoon;
3-Between 19:00 and 00:00 Good evening.

Just need a small code, which is as follows:

Public Function Greeting ()
Dim strMsg As String

If Time <# 12:00:00 PM # Then
strMsg = "Hello! Have a nice day! "
ElseIf Time <= # 7:00:00 PM # Then
strMsg = "Hello! Good afternoon! "
Else
strMsg = "Hello! Have a good night! "

End If
Compliance = strMsg
End Function

Then to call the code, we use a text box and as the origin of the compliance monitoring write = ().

Download: Compliance

Number of records

Saturday, January 12th, 2008 |

Through a small module can see how much we have records on a form and in which we meet them. That is, for those who do not want to have the navigation buttons at the bottom of the form, which allows you to browse the records, you can alternatively use this method to inform that the registration number that is and how many there are in a form.

Download: Records

Value in Euros in full

Tuesday, January 2nd, 2007 |

This is a very useful application that uses a module to write a number in full. For example, we introduce the value 100.50 in a field and another field he writes in words the value in Euros (Hundred Euros and fifty cents).

Download: extensive

Presentation

Avatar

Thank you for visiting.
Subscribe to feed not to miss any messages.

Here in blog I will provide examples of working with Microsoft Access and also ask questions to those who ask. More

Want to subscribe?

Subscribe or subscribe by email:
Enter your email:


Ads