forms and browse

TrustPilot

starstarstarstarstar Excellent

  • Home
  • Courses
  • Promotions
  • Schedule
  • Formats
  • Our Clients

Forum home » Delegate support and help forum » Microsoft Access Training and help » Forms and Browse

Forms and Browse

resolvedResolved · Low Priority · Version 2000

Paul has attended:
Access Advanced course
Access VBA course

Forms and Browse

Can I create a field in a form so that a user can browse for a file on their network?

RE: Forms and Browse

Hi Paul,

Thank you for your question.

There is no answer in the front end of Access but you need to create some Access VBA code. The link below contains the vba code needed.

http://www.access-programmers.co.uk/forums/showthread.php?t=120524

On the form, switch to Design View and create a command button. Now select the button and go to properties. Select the Data Tab and click on the 3 dots at the end.

Copy the code from the link and paste it between the Private Sub and End Sub.

I hope this helps.

Regards

Simon

Fri 26 Aug 2011: Automatically marked as resolved.


 

Access tip:

Calculating The Difference Between Dates

If you wish to calculate the time between two date fields, this can be done in a number of ways:

1. As a calculated field in a query
2. As a calculated control in a form or report
3. As a calculation in a VBA procedure.

The basic syntax to get the number of days between two dates is:

=[One Date Field] - [Another Date Field]

You can also use one of the following functions:

=Month([One Date Field] - [Another Date Field])
which calculates the number of months between the two fields

=Year([One Date Field] - [Another Date Field])
which calculates the number of years between the two fields.

Another function is the DateDiff() function.

It uses an argument to determine how the time interval is measured. For example:

=DateDiff("q",[One Date Field] - [Another Date Field])
returns the number of quarters between the two fields.

Other intervals that can be used in this expression are as follows:
"yyyy" - Years
"m" - Months
"d" - Days
"w" - Weekdays
"ww" - Weeks
"h" - Hours
"n" - Minutes
"s" - Seconds

View all Access hints and tips


Server loaded in 0.06 secs.