ms-access

Insert all data of a datagridview to database vb.net

别说谁变了你拦得住时间么 提交于 2019-12-31 04:19:08
问题 Dim Con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Music_Sales_Database.mdb;") Dim Com As OleDbCommand Dim SaleCode As Integer Dim MusicID As String Dim SubTotalPrice As Decimal Dim Copies1 As Integer Dim STR1 As String SaleCode = 1 Com = New OleDbCommand Com.Connection = Con For x As Integer = 0 To SalesDataGridView.Rows.Count - 1 MusicID = SalesDataGridView.Rows(x).Cells(0).Value SubTotalPrice = SalesDataGridView.Rows(x).Cells(5).Value Copies1 =

Access VBA merging Word template with query

北慕城南 提交于 2019-12-31 04:18:25
问题 I want to create a template in Word, that I can then use Access to merge data into. The Access data has various levels of grouping. Within each grouping, there are subqueries that may also have grouping. Because there is grouping, certain pages will need to be repeated. Example: I have a query that prints the details of a classroom. There are many students in each classroom, as well. So, I would like to have a DOTM template that groups each student by class. Then prints the first class

Unable to fire update and insert query in access using C# windows application

别来无恙 提交于 2019-12-31 04:17:09
问题 I am trying to create one windows application with MS Access backend but I am facing some problems for insert and update query. The select statement works fine for me, but insert and update are not working. The message is: syntax error in "update" and " insert into " below is my connection string to connect access database <add key="AppConnection" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=GNDb.mdb; Jet OLEDB:Database Password=@black123;" ></add> And Queries that I am trying to fire

Architecture mismatch between 32-bit and 64-bit ODBC drivers

给你一囗甜甜゛ 提交于 2019-12-31 04:04:17
问题 I've read most of the discussion surrounding 32-bit/64-bit ODBC driver and application mismatches. I have implemented the suggestions in articles pertaining to the error message in my question, and still have not found success. I recently converted from Windows XP to Windows 8.1, and am trying to reestablish the database connections that I had in XP. I was using localhost with Active Server Pages (classic ASP) serving up data from a local MS Access database via a system DSN - everything was

Access DB Table - Split Field SQL Command

半世苍凉 提交于 2019-12-31 03:59:12
问题 I have an Access 2013 Database Table, dbo_GOV THE GOAL I want to take the USSenators field, which contains data like (below) and split it into USSenator1 and USSenator2 fields, respectively: John Smith;Sarah Levens Bill Burr;Kevin Nill George Thomson;Tracy Johnson THE PROBLEM I've tried a few different Access SQL queries... both (below) when executed, give the error message Invalid use of '.', '!', or '()'. in query expression 'Split(USSenators & ";", ';')(0'. I have verified that there are 0

Displaying field's description in label or textbox on form

Deadly 提交于 2019-12-31 03:53:04
问题 What I'd like to do is display the description from the currently selected field in a label on my form. I feel that where it is currently being displayed (the bottom left status bar) is barely noticeable. How do I access that value in the status bar? For example, on my form, when I have a say, employee name field selected, in the bottom left in small print, it displays "The name of the employee you are registering." I know in some event on my form, I need code that does me

Query crashes MS Access

这一生的挚爱 提交于 2019-12-31 03:51:11
问题 THE TASK: I am in the process of migrating a DB from MS Access to Maximizer. In order to do this I must take 64 tables in MS ACCESS and merge them into one. The output must be in the form of a TAB or CSV file. Which will then be imported into Maximizer. THE PROBLEM: Access is unable to perform a query that is so complex it seems, as it crashes any time I run the query. ALTERNATIVES: I have thought about a few alternatives, and would like to do the least time-consuming one, out of these, while

DATE lookup table (1990/01/01:2041/12/31)

隐身守侯 提交于 2019-12-31 03:49:34
问题 I use a DATE's master table for looking up dates and other values in order to control several events, intervals and calculations within my app. It has rows for every single day begining from 01/01/1990 to 12/31/2041. One example of how I use this lookup table is: A customer pawned an item on: JAN-31-2010 Customer returns on MAY-03-2010 to make an interest pymt to avoid forfeiting the item. If he pays 1 months interest, the employee enters a "1" and the app looks-up the pawn date (JAN-31-2010)

Query not updateable

家住魔仙堡 提交于 2019-12-31 03:48:10
问题 I am trying to update local Access 2007 table with records from BE SQL Server 2012 Express. My steps here: In SQL Server exists Stored Procedure with 4 parameters to get needed records; In Access VBA there is function to call SP and make temporary query: Public Function UpdateLocalSQLTable(strTable As String, strSQL As String, strSQL1 As String) As Boolean On Error GoTo Err_Handler Dim qdf As DAO.QueryDef Dim strQuery As String Dim conConnectString As String strQuery = "qryTemp" DoCmd.Close

MS Access 2007: date query

爷,独闯天下 提交于 2019-12-31 03:41:08
问题 I need help with date queries in MS Access 2007. How do I show all data between date:01/06/2010 time:10:51 and date:13/07/2010 time:22:30 ? 回答1: If you are using the query design window you have a lot more latitude than if you are working in VBA. In the query design window you can enter a date and time on the criteria line in the format for your locale, when viewed in SQL view, you might see: SELECT tbl.CrDate FROM tbl WHERE tbl.CrDate Between #2/5/2006 14:7:0# And #11/18/2006 17:28:15#