I have a spreadsheet that I am doing a TransferSpreadsheet function from within Access
DoCmd.TransferSpreadsheet acImport, 8, "NewData_tbl", In_File, True
but sometimes the top line of the spreadsheet is a blank line which causes a Run-time error '2391' Field 'NoName' doesn't exist in...
I have a table called TotalOrder_tbl which contains order information.
In my database the user can select a button to display order information on a form
called Order_frm. On the Open form event for this form, an input box is used to allow the user to enter
an order number and then a query...
I am getting a Run-time error '3078' which states the Microsoft Access database engine cannot find input table or query when I attempt to execute the following code:
strSq1 = "SELECT * INTO ViewOrderData_tbl FROM Total_NW_tbl WHERE (((Total_NW_tbl.SO_NO)=1492198995))"
CurrentDb.Execute strSql...
I have a question about Case sensitive string comparisons...
I have a form with a text box called OldPWD that I entered "Test" into and with the code below I am
comparing this to "test" and the result is 0 which indicates that they are equal.
If I enter "TEST" (all caps) into the OldPWD text...
I have a form in my database named 'OrderMenu_frm' that allows a user to match items from a sales order.
The data from the sales order is populated onto the OrderMenu_frm if the user clicks a "Get New Order" button
on this form.
The user then matches sales order items on this form that are...
I have a spreadsheet that contains sales order information that I would like to convert over to an access database
and I am looking for suggestions or any tutorials on how to best do this.
The fields on the spreadsheet include customer name, order number, date entered, system type, computer...
I am trying to reuse some previous code but it seems like I am missing something...
The following code dumps the contents of table CleanPC_tbl into a spreadsheet and
I would like this to be an append but the spreadsheet keeps getting over written.
What am I missing?
Thanks
Set objXL =...
Is there a way to not display the last line of a continuous sub form ?
I have the following continuous sub form and I don't want the blank last line to be displayed...
(shown highlighted in the picture below):
Thanks
I have a query (IpelaOrd_qry) that I am using to load data into a table (IpelaOrd_tbl)
but I am doing something wrong as it is not working as I would hope...
At first I set this up as a select query as shown in the code below:
SELECT Ipela_tbl.ID, Ipela_tbl.PartNum, Ipela_tbl.Desc...
I have a continuous form that has a table as its record source but I would like to set up
a combo box on my main form to sort the table by part number, by quantity or by line number...
Here is what the query that sorts the table by Part number looks like:
(I have omitted the other two queries)...
I have a form that I have been working on which consists of three continuous sub forms in which
the user can select items from each and click on a Match Selected button which combines
these items into a table.
When each record of the three tables (which control the data source for the...
This is a simple one but for some reason I don't remember how to do this...
I have an query that makes a table but I want it to make one record for each quantity of
PC_frm_tbl.QtyLeft so that if the value of PC_frm_tbl.QtyLeft = 12 then I want the qry to create 12 new revords in the table...
I would like to make a form that contains four different lists of types of
items that are on a sales order and allow the user to match one of each of
the items up per type into one configuration.
So if an order contains a variety of PCs, software licenses, special software,
and other options...
I have the following code and I am stepping through it and monitoring a watch variable for rsx.EOF
but immediately after it executes the rsx.MoveLast line in the code, the watch variable stays at
rsx.EOF False
I would expect it to be True after executing this. Any suggestions why it isn't...
I have a table that contains four fields: Unit, Device, Qty, and LineNo
and I would like to add a fifth field that contains the total quantity
of Devices or Units of each specific type within that table to each record
such as total field in the example below.
In other words, There are a...
I have a table that I export to Excel but it doesn't export the names of the fields in
my table at the top of the spreadsheet.
This is most likely one option that I left out of my code but have been searching for
how to do this and have not been able to find the answer...
I have included my...
I am getting a Run-time error '3021' No current record when attempting to
edit a table record.
The table is initially is an empty table (MatchUP_tbl) and I have tried adding a record
with AddNew and Update and have also tried MoveFirst, Movelast (and no move at all with
the assumption that...
Is there an easy way to test to see if an excel spreadsheet exists to avoid the
error message that happens when trying to open a spreadsheet for export when it doesn't exists?
The idea is to create a new spreadsheet if one doesn't already exist
Thanks
I am converting an excel 2007 spreadsheet into a table but I am seeing some of my part numbers getting messed up.
My code contains the following line:
DoCmd.TransferSpreadsheet acImport, 9, "NewData_tbl", In_File, True
and the spreadsheet contains the following:
Part# Desc Line
015968...
Not sure what I am doing wrong here...
The following code gives a malformed GUID in query expression message:
Set rs = CurrentDb.OpenRecordset(strSql, dbOpenDynaset)
strSql = "Select * from PC_SP_Line_tbl order by SP,[Line Number]"
But have no problems when I place this in a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.