Using Access Form Fields In Pass-through Queries To MYSQL

May 9, 2005

I don't know if this is thebest place for this, but here goes....

I have an Access FE using MYSQL 4.1 BE. I have several forms and PassThrough queries (using MYSQL syntax not supported or available in Access).

How can I use form field values to use as criteria for these queries?

FOr example, in a pure Access database. I may have a form 'Employees' with a text box 'EmployeeName'. THen have a query....

SELECT * FROM tblEMployees WHERE EmployeeName = [Forms]![Employees]![EmployeeName]

If I were to add this variable to my pass-through queries, it errors. How can I do the same thing, passing my form fileds to an Access Query? I am trying to do this right in the SQL view of the queries, not in VBA or Macros or anything.

Thanks,
Scott

View Replies


ADVERTISEMENT

How Do I Pass Values From Fields When Opening Other Form

May 9, 2005

I have a subform with two combo boxes. These boxes select product catagory and products. The main form sets the supplier from which to select products.

If the user can not find the product they require they can double click thje product combo, which opens the product input form

I need the Products Form to be automatically populated by the following info:
Products catagory - from combo on sub form
Supplier name/id form parent form.

How do I make this work and/or pass these values as parameters to the products form.

I'm still floundering around with Access and I am stuggling!!
Thx.
Kev

View 1 Replies View Related

Queries :: Pass A Formula Form A Query To Excel

Apr 5, 2013

Access 2003
Excel 2003

I have a routine that exports the results of a query to an Excel file. Is it possible to input the formula into the query so that the Excel values calculate?

This is the formula I am trying to pass to the "AZ" column of the Data tab

Code:
MyCalc::"IF(T2="","0",TODAY()-T2)"

View 1 Replies View Related

Queries :: Pass TempVar To Query That Is Selected From Previously Opened Form

May 23, 2013

I'm trying to create a query that supplies a form with data. I want to pass a TempVar to the query that is selected a from previously opened form.The TempVar is setting correctly and I can see if this if I place a textbox (NewCID) on the form showing the TempVar. The problem I have is displaying on the records according to that TempVar. If I set the query manually, i.e. "|Test|" then records are displayed but if I use the TempVar, which also displays |Test| then no records are brought back.

think it's something do with the vertical bar and that fact the field I'm searching on is a memo field, both of which I've no control over. I also have to use the Like statement because of this.Here's the query that works...

SELECT *
FROM dbo_ASSETS
WHERE ASSET_CID Like "|Test|"

and the one that I want to use, that doesn't...

SELECT *
FROM dbo_ASSETS
WHERE ASSET_CID Like [TempVars]![tmpvarCID]

I've even tried referring to the textbox instead of the TempVar, i.e.

SELECT *
FROM dbo_ASSETS
WHERE ASSET_CID Like [Forms]![AssetsCID]![NewCID]

but that doesn't work either.

View 2 Replies View Related

Modules & VBA :: Pass Data From Fields Into Table And Reset Fields

Aug 27, 2013

I have a database that will register the emails coming in and what time, also the time, date out and person.

I have a form with the fields to be filled in and a submit button. There are some fields that are automatically filled in and others need manually fill in.

below that part is a sheet (subform in the form of sheet) that should be filled in with the above data. Once it is there, it should empty the fields so they are ready to be filled in again. If I fill new data and press the submit button, it should go to the next available row.

View 2 Replies View Related

MySQL Amd Access

Feb 7, 2006

I am building my frist database with MySQL as a backend to Access. I am using the ODBC driver and it looks very interesting. I have a question already though. I know that I can use the InnoDB engine and create relationships within MYSQL to enfro referential integirty, but should I? Or should I create the relationships in Access and let Access do the enforcing? Will my Access application report MySQL errors?

Thanks for the time.

View 2 Replies View Related

Mysql Access

Mar 13, 2006

I have a mysql database on my website (remote db). And i want to link to this database in acess(local bd) so that i can manipulate data.

How is it possible

View 1 Replies View Related

Access V.S. MySQL

Apr 22, 2006

Hey, Just wanted to throw the question out there, I already asked another member on their opinion on this but havent heard anything back yet, so im going to also throw the quesation out here as well and see what i get. Im new to databases and started out trying to learn Access with the intention that what i learned in Access i could use to learn MySQL, I figured access was a easier starting point to get my feet wet. I eventaully want to apply my databases to the web and im not sure but just wanted to find out. Does access have capabilities to manage a site where customers create an account on the site and log in and everything?? I was thinking access cant really do it and if it could it might be hard, so thats why i was looking into MySQL. I guess what im really asking is whats the difference between Access and MySQL, and what advantages and disadvantages do they have?? Everybodys opinion is welcome, it all helps me out. Thanks! ~[MikE]~

View 5 Replies View Related

ACCESS And MySQL

May 31, 2006

Hello everybody,

Who can help me.
I want to access a MySQL database with ms access.
I cant seem to get it.

Please help me.

Thanks in advance,
John

View 2 Replies View Related

Access And MYSQL

Aug 25, 2003

Hello to all
this is my first post

i am havinga problem with my access database
so i started to converted it to MYSQL

but after converting it and running asp script it gives the following error

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E09)
[TCX][MyODBC]You have an error in your SQL syntax near 'SELECT tblTopic.Topic_ID FROM tblTopic WHERE tblTopic.Forum_ID = 4 ' at line 1
/mycplus/forum/Default.asp, line 335


and the orignal sql statement in ASP Forums is

strSQL = "SELECT " & strDbTable & "Author.Username, " & strDbTable & "Author.Author_ID, " & strDbTable & "Thread.Topic_ID, " & strDbTable & "Thread.Thread_ID, " & strDbTable & "Thread.Message_date "
strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "Thread "
strSQL = strSQL & "WHERE " & strDbTable & "Author.Author_ID = " & strDbTable & "Thread.Author_ID AND " & strDbTable & "Thread.Topic_ID IN "
strSQL = strSQL & " (SELECT " & strDbTable & "Topic.Topic_ID "
strSQL = strSQL & " FROM " & strDbTable & "Topic "
strSQL = strSQL & " WHERE " & strDbTable & "Topic.Forum_ID = " & intForumID & " "
'strSQL = strSQL & " ORDER BY " & strDbTable & "Topic.Last_entry_date DESC) "
'strSQL = strSQL & "ORDER BY " & strDbTable & "Thread.Message_date DESC;"

it was fully working in ASP + Access forums

Thanks
Plz help me


View 2 Replies View Related

Using Access As A Front End To MySQL

Sep 16, 2005

I have Microsoft Access on my desktop connecting to a MySQL database at my host, using an ODBC driver. I can read the data just fine. But when I try to add another record, it won't seem to do it.

Is it possible to update a MySQL database from MS Access on my desktop?

I have just one table. Very simple. Is it to do with primary key number generation or something?

Thanks,

Jon

View 1 Replies View Related

Connecting To MySql From Access

Feb 26, 2006

Hi all,

hope someone can help me with this.

Before we moved webhosting company we could have external access to our MySql database which was great as our MS Access system would periodically pull data from our MySql site (namely customer enquiries which were entered via a form on our website) and dump them in our MS Access live quotes table all automatically.

With our current host (which seems to be the norm from my web-searches) they only allow local access to the MySql system.

My question is, how can I oversome this hurdle without having to move hosting company. I really don't want to move again as it's a real pain.

All suggestions welcome.

ahrint

View 2 Replies View Related

Looking For Experienced Access/MySQL Developer

Nov 10, 2005

I have an existing MS Access/MySQL app that I need an experience developer to develop further. The existing application is fairly complex, so experienced developers only.

View 2 Replies View Related

MS Access Distribution With MySQL Backend.

Feb 2, 2007

On my development machine everything works great, but I know that I'm going to run into problems with distribution.

I don't think there is a way, but I'll ask. Is there any way to get around not having to install the ODBC MySQL drivers on each computer? One of the reasons I'm migrating to MySQL for a backend is the fact that I'll be going from 10 users to 150 users, each of which has a "locked down" PC, which would mean logging into each with Admin rights to install the driver. Not an impossible task, but a pain.

Is is possible to have a "shared" source for the driver? I have only a rudimentary understanding of that process.

Thanks in advance for any help that someone can provide, or some answers pointing me in the right direction.

View 1 Replies View Related

Linking Access To MySQL Issues

Jun 8, 2007

I have converted my MS Access database tables to MySQL Server tables. I am trying to use the MS Access front end to cooperate with the MySQL Backend database. I have created a system DSN, without problems.

My issue is when I Open MS Access --> Open File --> Files of Type: ODBC Databases, nothing happens. It does not give me the option to connect to the MySQL database I just created. I also tried to import data by linking tables (again, choosing the ODBC databases option), and it does the same thing. Does anyone know what I may be doing wrong?

View 4 Replies View Related

MYSQL -> Access (update Query)

Oct 17, 2007

I'm new to access and I'm trying to learn the functionality by creating a relational DB for US zip codes from an excel document. I've imported everything and I have the tables setup. Is there a way to run a MYSQL query like this:

UPDATE tbllocation, tblzipcode SET tbllocation.ZipID = tblzipcode.ZipID WHERE tbllocation.ZipID = tblzipcode.ZipCode;

in access 2007?

Thanks

View 2 Replies View Related

Transfering MYSQL Data To An ACCESS Database- HELP ME!

Oct 31, 2005

Could someone please help me?

At work we have a website with a mysql database attached to it. It keeps data such as customer name address postcode contact id etc.

Currently our main database is made in access.

I need to transfer data from the website database (which is in mysql) to our access database. And would like this to happen regulary. We have been quoted £1800 for someone to do this!

As this is a new job i would like to be able to do this myself, is it hard to do?

Could someone provide me with some information of how to do this? or where to start.

Much appriciated.

View 3 Replies View Related

Export Data From An Access Database To MYSQL

Jul 17, 2007

Hi There,

Whereabouts would I change the date format from the access database from yyyymmdd ?

I am trying to convert this table from access into mysql, and when I ouput to a csv file the date is in access.

Many Thanks

Chris

View 1 Replies View Related

Front End = Access; Back End = MySql Problem

Mar 8, 2008

Hello

I“m working in an application using Access as FE and MySql as BE.

When I add some registers to this linked table, OK.

Problem: When I try to add a lot of registers (700.000!) it does“nt work and the msg is that the computer does“nt have memory resources to do the job.

If I try the same with Access tables it works fine.

MySql configuration, perhaps?

Thanks a lot

Renato

View 9 Replies View Related

Connect Access Front End To Mysql Back End

Dec 14, 2006

I have seen it done in the past but at the time my limited knowledge did not retain how to do it, it is connected through the odbc, im am running server 2000

what code do i use to connect and how do i set up the odbc

any help would be appreciated

Jabez

View 1 Replies View Related

Using MySQL BackEnd With Access FrontEnd For Multi-User Database

Mar 31, 2015

If I want to distribute a front end to connect with a MySQL back end ... do I need to set up the system DSN on each workstation that will be using the front end?

View 4 Replies View Related

Form ODBC(mysql) Can't Edit Item

May 19, 2005

Hi pals,
I have the following problem.
I have a form that runs a query from 5 tables linked via odbc.
The thing is that the result is showed ok.. but when I tried to edit an item in grid, I can't do it. (get that noisy bell).
I realized that if i only use one one table, I can edit ok.. but If I use more than one, I can't.
Any solution to that??
Thnks
Mariano

View 1 Replies View Related

How To Pass Table Fields Names From VBA To Query

Aug 15, 2014

I've been developing an Access database to keep track of my company's ongoing projects. There's also a form to browse the history of users actions within the program. It's based on table tbHistory that stores actions and parameters as numbers (for example eventId = 1 is "logged in" and eventId = 2 is "logged out"). I've been using a query to translate those numbers to text with a syntax like:

Code:
IIf([tbEvents].[EventId]=1 Or [tbEvents].[EventId]=2;[tbEvents].[EventDesc];IIf([tbEvents].[EventId]=5 Or [tbEvents].[EventId]=6;...

It worked fine but eventually the expression within expression builder has grown to the level that exceeded allowed limit and I couldn't develop my statement any more.. I decided to develop a vba function that would take eventId as a parameter and would retrieve a string, here it is:

Code:
Public Function translateHistory(eventId As Long) As String
Select Case eventId
Case 1 To 2
translateHistory = ""[tbEvents].[EventDesc]""
Case 6
translateHistory = "[tbEvents].[EventDesc] & "" <b>"" & [tbFormDesc].[FormName] & ""</b>"""

[Code] ....

And in my query I replaced that extremely long expression with just translateHistory([tbHistory].[eventId]). It seems to work, but the result it brings is a pure string with table names and fields - in other words, the query doesn't recognize it should be replaced with appropriate value. Here's the output I get:

Of course I'd like "[tbEvents].[EventDesc]" to be replaced with appropriate value of field "EventDesc" from table "tbEvents" as it used to be.

View 13 Replies View Related

Reports :: Pass Parameter Values To Report Fields?

Apr 18, 2013

I have a report that is based on a query.

The query has two fields. Start and End Dates.

When I run the query the Parameter box asks for the dates by using <[Date1] and >[Date2]

What I want is to have 2 fields at the top of the report, that display the values I enter in these boxes?

View 1 Replies View Related

Forms :: Option Button And Date Fields To Pass Parameter

Oct 4, 2014

I have a form with option group (two option buttons) and date fields (to select a date range). The form should pull/pass parameters from the query. There's a form button that generates a report based on the query.

Issue: I can't figure it out how to link option buttons and date range to the query so when the button is clicked it generates the report with chosen criteria. The form is for the user to enter parameters.

View 14 Replies View Related

Pass Through Queries

Jan 6, 2005

Is it possible within Access to use a pass through query that joins tables from two different servers?

If not I have a workaround solution though this is a more intensive effort.

As always, you are all great here and any help is appreciated.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved