473,414 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

StartupShowDBWindow pops up with ACCDE file after hidden

547 512MB
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.
Expand|Select|Wrap|Line Numbers
  1.  Dim strPath As String
  2.         With Me
  3.          strPath = Left(.lblFile.Caption, InStrRev(.lblFile.Caption, "\"))
  4.         strPath = FSBrowse(strStart:=strPath, _
  5.                            lngType:=msoFileDialogFilePicker, _
  6.                            strPattern:="MS Excel,*.csv")
  7. If strPath > "" Then
  8.              .lblFile.Caption = strPath
  9.            MsgBox "Please be patient. All Data is now imported into the program", vbInformation, "Data imported"
  10.              Call DoCmd.SetWarnings(False)
  11.               DoCmd.OpenQuery "deleteRoagdata"
  12. DoCmd.OpenQuery "DeleteRoagEntry"
  13.             Call DoCmd.TransferText(acImportDelim, , "Roagdata", strPath, True, "")
  14.             End If
  15.      End With
  16.  
  17. Dim tblDef As TableDef
  18.  
  19.     For Each tblDef In CurrentDb.TableDefs
  20.     If InStr(1, tblDef.Name, "ImportError") > 0 Then
  21.         DoCmd.SelectObject acTable, tblDef.Name, True
  22.                DoCmd.DeleteObject acTable, tblDef.Name
  23.  
  24.     End If
  25.     Next tblDef
  26.  
  27. DoCmd.OpenQuery "AppendRoagEntry"
  28.  Call DoCmd.SetWarnings(True)
May 31 '13 #1
3 1376
ADezii
8,834 Expert 8TB
Try channging Line# 21 to:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SelectObject acTable, tblDef.Name, False
May 31 '13 #2
neelsfer
547 512MB
Thx Adezi, an oversight from me that almost drove me to .....
May 31 '13 #3
ADezii
8,834 Expert 8TB
@neelsfer
No problem, a little oversight we all make at some point in time.
May 31 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
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-
1
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...
1
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...
0
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...
1
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?
7
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...
1
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...
6
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. ...
4
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...
4
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
Oralloy
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,...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.