ms-access

MS Access OLE Bound Object Drag and Drop Feature Does not Function

For the past year, I noticed that whenever I added an OLE Bound frame to an Access form, as an interface to save documents such as Word or PDF, the drag and drop feature would become unavailable. I think this has to do with having the OLE Bound frame on a subform within a main form; however, I have been able to use the drag and drop fea...

SQL for parsing multi-line data?

I have the unfortunate task of having to import data from excel into a database on a regular basis. The table looks something like this: IssueID References 1234 DocID1<cr>DocID2<cr>DocID3 1235 DocID1 1236 DocID2 1237 DocID2<cr>DocID3 References is a multi-line text field. What I'm trying to do is cr...

Visual Basic 6 data structures

What are all the build in data structures for VB6 (Microsoft Access) ? I know there are arrays, but are there other more modern data structures? ...

Deletes in one-to-one relationships? Normal behavior?

When working in Access, whenever I delete a record from one table - it's corresponding record in another table is also deleted when defined as a one-to-one relationship. This would be normal behavior when I tell it to enforce referential integrity with concerns to deletes and updates (how I understand it). However, it seems to also do ...

vbscript insert into ms access

hi, I am working on a small ap that uses vbscript to write to a ms access db everytime i use it (really for personal use only so i don't need to worry about sql injection). When i run it i keep getting a "syntax error in INSERT INTO statement". The connection string is correct because the db locks when its run. table name is ors. What...

Awkward DAO string manipulation issue.

I'm working with a legacy vb6 product and I've come across a problem whereby I need to get the filename part of a full path from a database table through DAO. I've got no access to VBA functions here so I'm looking specifically for MS Access SQL. I have no way of dropping some extra code after the query. I CAN'T change/refactor the solu...

MS Access checkbox validation

Hi Guys I have a question on checkboxes in acess 2003 I have 4 checkboxes on my form and one of these boxes, i want to restrict so only users supplied with the correct password eg (report1) can check that box. I have a small textbox to the side of the checkbox labelled manager password. I am not sure how to set this validation in acces...

Is there a way to call the BeforeUpdate event procedure of any control in VBA (MS Access 2002 or 2003) ?

Hi, In VBA, I'm changing the value of a few controls in an Access form. I like to run the BeforeUpdate events of these controls after doing so, as it checks the coherence between fields : Private Sub ExampleProc1() Dim intCancel as Integer intCancel = False Me.Controls("Date1").Value=Null Me.Controls("Textfield1").Value=Null ...

Write Conflicts - even with me.dirty

In an application that I am writing, I am getting Write Conflicts when I use VBA code to change the value of a checkbox on a form. I have tried inserting the following code into the events that have VBA changing the values of any object on the form: If Me.Dirty Then Me.Dirty = False End If But the problem persists - as if the rec...

SQL: Have 4 Tables, Looking to find unmatched data.

I've always done this back asswards in PHP or ASAP, so I figure it's time to actually learn the proper way to do it in SQL. I have the following 4 tables in a database: Category (Fields: CategoryNumber, Desc) (small table with 15 rows) Media (Fields: MediaID, Desc, CategoryNumber, etc) (huge table with 15,000 rows) Sales (Fiel...

Exporting to text using access query with parameters

Greetings, I have an access query which uses built in parameters (e.g. [start date]) to prompt a user to enter a date parameter when the query is ran. In most cases this has worked fine except today I tried to export the query to a text file and I am receiving an error: Too few parameters. Expected 2. This makes sense as there ar...

Listing subset of MS Access Tables in MS Excel with VBA

I have a series of stores Queries/tables in an MS Access 2002 database that starts with "RP_". I would like to list those table names in a listbox menu in an MS Excel 2002 spreadsheet. Any ideas on how to do this? ...

MS Access search for record by textbox instead of dropdown

Hi. I'm pretty new to MS Access. I'm trying to create a simple form that will basically search for a particular record using a textbox, rather than a drop down box. Essentially a user would be able to enter an ID number and retrieve some other related Info. However, I do not want the user to be able to add any new records to the database...

Password Protecting a MS Access file

I've got a MS Access database with a table and a form, but I want the user to only see the form. I don't want them to be able to edit any of the data. The user should only be able to use the form to query the table. Any suggestions?? ...

Detect time of last change on a Microsoft Access database table

Does anyone know of a way to detect when the last time a Microsoft Access table has been changed (inserted into or updated)? We used OLEDB via ADO COM to communicate with an access database programmatically and were looking for a way of detecting changes to specific tables. We don't need to know what those changes are, just that change...

Is there a simple way of populating dropdown in this Access Database schema?

Hello! I have 3 tables which look like this: Location Node Sektor ----- ------- ------- PK: ID - Autonumber PK: ID - Autonumber PK: ID - Autonumber Name NodeName Sektor Height Aksess Frequency Latitude ...

Auto populate a combobox

Hi Here i am again. I have 3 comboboxes on my form ie cmbPart_number, cmbPart_name and cmbEOnumber. All i want to find out is how the cmbPart_name and cmbEO_number boxes are autopopulated when the user makes a selection from the cmbPart_number. What i have tried so far is adding part_name and EO_number in the row source SQL query and in...

Linking MS Excel to MS Access queries

I have an Access database that I use to to run a bunch of aggregate TOP 5 queries. The end game of this particular function is ppt presentations with charts. So to automate this a bit, I created an excel spreadsheet with a bunch of pre-made charts in it. The I linked/data imported the query results into the excel spreadsheet, and set the...

How many simultaneous connections can an .mdb access file support?

Hi! I have a website (www.soltrago.com) wghere I use a .mdb microsoft access database to retrieve data when the pages loads. I use a dns less connection to connect to the database. My question is how many simultaneous connections can I have to my webpage? Like how many people per second can view my webpage? Thanks! ...

MS Access User Level Security for Form to be Read but Table to be Hidden

Can user level security enable someone to access a form, but not access a table? I have a form that is connected to a table using a"SELECT" command. It does not "UPDATE" or "DELETE". I'd like for the user to access my form, but I don't want them to be able to view the details in the underlying table. I've tried all sorts of combinations ...