So I have a one list box with values like DeptA, DeptB, DeptC & DeptD. I have a method that causes these to automatically populate in this list box if they are applicable. So in other words, if they populate in this list box, I want the resulting logic to say they are "Yes" in a boolean field in the table.
So to accomplish this I am try...
hai i am populating the data from ms access to excel through vba .My db contain number of group detail i wants to seperate the group members during the population time the problem is that at the end of the each group i wants to insert 2 row in the excel sheet i am using the below mentioned code but i does not work is any possible ?
Di...
I have a macro which can read the last cell/column of all tables in a
Word 2003/2007 document and store the data in an MS-Access table. But,
some Word documents have the data in structures like a table format
but are not actually tables. The structure looks like a table, but the
table borders are actually line connectors. These documents...
is it possible in access 2007 to draw an X during runtime at a specified point on the report during runtime?
...
I'm adding some custom buttons to my forms in MS Access, but somehow I can't make them work. In buttons properties Event tab I've changed 'On Click' event to call 'Event procedure'. Then in VBasic I'm selecting my button and from what I know this code should give me prompt, and if Yos is selected the form should close. But when I click m...
i have a string like this
some_string= "something, something2, something3, something4, etc.."
i would like to read this string into a table like this:
field1 = "something"
field2 = "something2"
etc
what is the best way to do this in vba/sql?
...
i have a string like this
something = "something, something1, "something2, something else", something3"
i need it to be read into a table like this:
field1 = "something"
field2= "something1"
field3 = "something2, something else"
field4 = "something3"
please notice that the double quotes in the something string signified that the s...
b'h
i will be programmatically importing a text file into a table. i have saved the import steps. i will use this:
DoCmd.TransferText(TransferType, SpecificationName, TableName, FileName, HasFieldNames, HTMLTableName, CodePage)
to do the import.
this is what SpecificationName means:
Specification Name The specification name for the...
I'm trying to run the code below to insert a whole lot of records (from a file with a weird file format) into my Access 2003 database from VBA. After many, many experiments, this code is the fastest I've been able to come up with: it does 10000 records in about 15 seconds on my machine. At least 14.5 of those seconds (ie. almost all th...
i am using Docmd.TransferText to import data from a text file into my access table.
i would like it to do the following:
if the record already exists, then update it
if the record does not exist then add it
how do i accomplish this?
currently i have this line:
DoCmd.TransferText acImportDelim, yesyes, "table3", "C:\requisition_dat...
I have a fairly simple MS Access Database that contains some metadata about a bunch of documents and a hyperlink field that links to the document on our network drive.
However, when I use a SQL INSERT statement to populate the hyperlink field, the value I give it only becomes the display text, not the actual link.
How can I make the va...
Hi am populating the data from MS Access By Using VBA i am using below mentioned code.if i am run the same code in MS 2007 then It run properly but if i am run the same code in MS 2003 it gives the "General ODBC Error" how to solve this problem Any help would be appreciated!!
Thanks in advance
Sub Button2_Click()
Dim varConnection As S...
what is the proper way of doing the following:
getting DATE as user input
running a query
generating a report that uses the query
this is the solution i was thinking:
have a form that takes user input
run the query
open the report
what is the correct way of doing this>?
...
Where is the Position of cursor in recordset.EOF and recordset.BOF. Any explanation or link info is appreciated much.
...
I need to create a Microsoft Access database, but have a need, in one of my tables, for a single field to be strongly encrypted.
Since AES requires both a key and an initialization vector, I've decided to solve this problem by requiring a password to access the database (as the key), and a field in the table to hold a SHA1 hash of the ...
I have an Access 2003 database that connects to a SQL Server 2008 box via ODBC. The tables from SQL Server are connected as linked tables in Access. I have a stored procedure on the SQL Server that I am trying to execute via ADO code. The problem I have is that Access cannot seem to find the procedure. What do I have to do within Access ...
I have a VBA function IsValidEmail() that returns a boolean. I have a query that calls this function: Expr1: IsValidEmail([E-Mail]). When I run the query, it shows -1 for True and 0 for False. So far so good.
Now I want to filter the query to only show invalid emails. I'm using the Query Designer, so I just add a value of 0 to the C...
I am working with an Access 2003 database that has a subroutine using DAO code. This code loops through the table definitions and refreshes the ODBC connection string. I would like to convert this to ADO so I do not have to reference the DAO object library. Here is the code ...
Public Sub RefreshODBCLinks(newConnectionString As String)
...
How do i create a parent/child relationship that VB6.5 will put into a tree like view using a recursive search.
I have a simple table structure that I'm experementing with before I begin using the main database.
ID | Part | ParentId
-----+-----------+---------
1 | Tire | 0
2 | Door | 0
3 | Break | 1
4 ...
Hello,
I'm trying to find out how I can access scalar functions from the SQL Server database of my adp file.
I have an adp file in access 2007 and a SQL Server 2005 DB.
In access VB I try to get the result of a scalar function with parameters.
I tried with DAO, but it that case currentdb = nothing:
Dim dbs As DAO.Database
Dim sq...