I am fully aware of DateDiff()'s inability to handle daylight savings issues. Since I often use it to compare the number of hours or days between 2 datetimes several months apart, I need to write up a solution to handle DST. This is what I came up with, a function that first subtracts 60 minutes from a datetime value if it falls within ...
I have a button click event that takes information from controls and enters it into a table via INSERT INTO SQL statement in VBA.
I was wondering if there is anything I could add to this, or some other method to acquire the record number that is created for the record?
Could I just turn around and SELECT against the table and use rs.la...
I have a tab control on a form, and a couple different tabs have save buttons on them. Once the user saves data (via SQL statements in VBA), I set the .enabled = false so that they cannot use this button again until moving to a brand new record (which is a button click on the overall form).
so when my form open i was going to reference ...
Hi,
I have a table in an Access 2007 database. All fields are of type text. Can the following be done using the where clause? If so how?
SELECT * from Table1 WHERE (ColumnDate is between 26th and 19th of march 2010)
SELECT * from Table1 WHERE (ColumnAge is between 25 and 40)
The usual < <= operators don't seem to work.
Thanks,
...
My biological research involves the measurement of a cellular structure as it changes length throughout the course of observation (capturing images every minute for several hours). As my data sets have become larger I am trying to store them in an Access database, from which I would like to perform various queries about their changes in...
I am making a very simple feedback form for an MS-Access application I'm working on. It consists of a textbox (for comments), a Submit button, and a Cancel button.
In your opinion, when the focus is on the textbox, is it more intuitive for the Enter/Return key to click the Submit button or move the cursor to the next line within the tex...
Hi There,
Hopefully I can find some words of advice from somebody.
Is it possible to create forms 'on-the fly' so to speak in MS-Access 2007
I have a structure of tables:
tblCustomer
tblQuestAns
A customer may answer the questionnaire answers many times as they relate to all products.
I propose to hopefully have an initial input fo...
I have two MS Access databases (with identical table structures), and I'd like to use a SQL statement (programatically in VB.NET) to copy records from one to the other. Both databases are locally stored, in the same directory (and this will always be the case).
Suggestions?
Thanks!
...
According to the Access (2003) documentation, when you delete a record, it's placed in a buffer, then the BeforeDeleteConfirm event is raised, then the AfterConfirmDelete ad Delete events. In my table if a record is deleted, I need to add one of its field values (a quantity value) to a field in another table.
I tried setting the quantit...
So I have an excel workbook that has a nice global map of shaperange objects. With some very simple code I can change the colors, group and ungroup collections of countries into arrays, etc...and it works pretty well. However, I would like to bring this into Access.
So I could copy and paste all the shapes into an access form manually, ...
So I am not sure if I am asking this correctly; let me explain:
IS there a way I can run my MDE without the access shell around the forms/reports? The part that provides the menu, and the little application title. I think it is the overall presentation layer form that all my access stuff sits on, but I am not sure. I am just wondering i...
Hi there
I need to remove line breaks from the beginning of a memo type records. I dont want to use the replace function as it would remove all line breaks from the record which is not desired. Its only the line breaks at the beginning of the field that I am interested in removing.
Furthermore, the my records do not always begin with a...
Hi,
I have a column with the following values
abc 23
34 abc
23 abc 56
These are distinct values but i want only abc to be returned as it is there in all values.
is this possible. moreover i dont want to give abs as input as there are numerous values like this.
thanks
regards
tksy
...
I know there's a way to get a list of all tables in an Access database by using the quering the MsysObjects: "SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>'~') AND (Left$([Name],4)<>'Msys') AND (MSysObjects.Type)=1 ORDER BY MSysObjects.Name"
Does anybody know a similar (or other) way to retrieve a list of all indexes...
How do I get two tables of their values to add up into one table record, e.g.
Item table:
ID - Autonumber
OrderID - Number
Price - Currency
Details - Text
Order table:
ID - Autonumber
CustomerID - Number
Date - Date
TotalPrice - Currency
The TotalPrice should add up all the items and the total price of adding them up into the ...
I have a set of Excel 2000 SP3 worksheets that have Pivot Tables that get data from an Access 2000 SP3 database created by a contractor who left our company. Unfortunately, he did all his work on his private area on the company (Novell) network and now that he has left us, the drive spec has been deleted and is invalid.
We were able to ...
I am trying to link an Access 2003 DB to tables in a SQL Server 2008 database using ODBC. When I try to link to tables that have Primary Key established I get the following error message.
" 'Pk_dbo.Batch_Claims' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not to long. "
Pk_d...
Let's say I have an embedded Excel Spreadsheet on a Microsoft Access form. I call the object frame
ExcelFrame
and I add a text box on the form called
txtA1
and I add a button on the form called
cmdInsert
I want to type "Hello World" into the text box, click the button and have it appear in the A1 cell on that spreadsheet. What V...
I often find it confusing as to when it is appropriate to use:
rs.Close
opposed to
Set rs = Nothing
I can understand needing to close a connection to a source, but should I be using both when the variable falls out of scope?
Can I just set the variable to Nothing in order to skip the step of Closing the connection? Would this ...
Hi,
We need to generate an XML using Access, is there any Visual Basic objects or functions that can help with the task ?
Thanks in advance
...