I have a strange situation. When i run the following code to import a .csv file, the StartupShowDBWindow opens on completion. Any suggestions on how to revert back to hiding it please? I think my issues are between lines 17-22. - Dim strPath As String
-
With Me
-
strPath = Left(.lblFile.Caption, InStrRev(.lblFile.Caption, "\"))
-
strPath = FSBrowse(strStart:=strPath, _
-
lngType:=msoFileDialogFilePicker, _
-
strPattern:="MS Excel,*.csv")
-
If strPath > "" Then
-
.lblFile.Caption = strPath
-
MsgBox "Please be patient. All Data is now imported into the program", vbInformation, "Data imported"
-
Call DoCmd.SetWarnings(False)
-
DoCmd.OpenQuery "deleteRoagdata"
-
DoCmd.OpenQuery "DeleteRoagEntry"
-
Call DoCmd.TransferText(acImportDelim, , "Roagdata", strPath, True, "")
-
End If
-
End With
-
-
Dim tblDef As TableDef
-
-
For Each tblDef In CurrentDb.TableDefs
-
If InStr(1, tblDef.Name, "ImportError") > 0 Then
-
DoCmd.SelectObject acTable, tblDef.Name, True
-
DoCmd.DeleteObject acTable, tblDef.Name
-
-
End If
-
Next tblDef
-
-
DoCmd.OpenQuery "AppendRoagEntry"
-
Call DoCmd.SetWarnings(True)
3 1376
Try channging Line# 21 to: - DoCmd.SelectObject acTable, tblDef.Name, False
Thx Adezi, an oversight from me that almost drove me to .....
@neelsfer
No problem, a little oversight we all make at some point in time.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: se7en |
last post by:
okay,
i cant seem to run a file with another file as an argument.
e.g I want to send the file "x.met" as an argument when running the file "y.py"
thanx
-python newbie-
|
by: knutsample |
last post by:
Hello!
I'm trying to associate a file extension to my wxPython script so that
all I have to do is double click on the file and my python script will
load up with the path of that file.
For...
|
by: Szaki |
last post by:
I use a BulkLoad to import file.xml to my base MS Server 2000.
To import this xml file I need schema file. Mayby you know how to do this
file mechanicy f.g. mayby somebody have some script in .net...
|
by: wdweb |
last post by:
Hello, Thanks in advance for any tips.
I am building a file management application which will allow file
markup/sharing across the internet for all ms office, adobe pdf,
photographs and other...
|
by: itmanager |
last post by:
Is there a way, using the CreateProcess/CreateProcessAsUser api's to launch
an application with it windows hidden upon startup?
|
by: shadowman |
last post by:
Hello all:
I have a web app that creates an image of a graph (as a png), based on
user input of a combination of drop-down box items.
I'm trying to add a function that allows the user to save...
|
by: sbettadpur |
last post by:
Hi help me anybody,
here is my requirement
i have totally 4 web pages, if i want to send data from 1st page then i need to get at 4th page with out using hidden field concept in text fields from...
|
by: postman |
last post by:
I have an application that minimizes the Access application window and displays a pop-up modal form.
The Application window is minimized with this command in the form's Load event.
...
|
by: MrDeej |
last post by:
Anybody now if i can do this programtically?
My challenge is that i have a maybe 10 distributions a week with updates and changes which i now have found the accde format to be of good use. I also...
|
by: liberty1 |
last post by:
Hi everyone. I appreciate your effort at helping newbies like me. I have the following problems and will appreciate urgent help.
PROBLEM NUMBER 1:
Using PHP and MySQL, I am able to upload...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |