Expand|Select|Wrap|Line Numbers
- Dim strPath As String
- With Me
- strPath = Left(.lblFile.Caption, InStrRev(.lblFile.Caption, "\"))
- strPath = FSBrowse(strStart:=strPath, _
- lngType:=msoFileDialogFilePicker, _
- strPattern:="MS Excel,*.xls")
- If strPath > "" Then
- .lblFile.Caption = strPath
- MsgBox "Please be patient. All Race Entry Data is now imported into the program ", vbInformation, "Data imported"
- Call DoCmd.SetWarnings(False)
- Call DoCmd.TransferSpreadsheet(acImport, acSpreadsheetTypeExcel9, "RaceEntry", strPath, True, "")
- Call DoCmd.SetWarnings(True)
- End If
- End With
Ie Racenumber = 50 on RaceDate 31/10/2011, should only appear once in the RaceEntry tbl, but the RaceNumber may appear numerous times in combination with other dates.
A lot of my race entries come from online websites, and it is supplied in Excel format by the web administator. Having these validation checks will save a lot of time.
Is this possible?