Intermittent Form Link Criteria Fault

Dec 1, 2006

:mad: and tearing out my hair with this one...
Someone out there please help:

I have a form that should open, linking to the date on another form (that is changeable using a Calendar Control), and display records for that date.

My underlying data is available for a variety of dates but some of the dates (and therefore the records) will not appear when this form opens.

They will all show if the form is opened without the filter. Or they will show in a report.
So I know that the coding is correct.
This intermittent-type thing is really bugging me.

Have even tried re-typing some of the dates in the table in case the format has somhow got changed.

Nothing is working.

View Replies


ADVERTISEMENT

Open Form, Link Criteria, Filter, Cant Set Default Value To A Control.. Why?

Dec 15, 2006

Private Sub btncard_Click()
Dim stLinkCriteria As String
DoCmd.RunCommand acCmdSaveRecord
stLinkCriteria = "[jobref]=" & "'" & Me![jobref] & "'"
DoCmd.Close
DoCmd.OpenForm "k_job_card", , , stLinkCriteria
End Sub

this button code opens the k_job_card form.

the form opens and says 'Record 1 of 1, (Filtered)

i have a control on the form that opens.. and i am simply trying to assign a default value to that control..

it is a textbox.. for my jobtype field (text datatype)..

is there any particular reason why i cannot assign a default value to a control if it has been placed on a form that has been opened using a form filter?

this is how the Form Data tab is set at the moment..

View 3 Replies View Related

Fault Log

Aug 22, 2005

I am creating a database to log faults with a system. I have created a form which allows the user to enter the details of the fault. But I also want to be able to display information about the location of the fault on the same form when a selection is made in the combo box.

For example I have created a combo box which allows the user to select the location of the fault eg. location1 and its address. I then want the text boxes on the form to display information such a telephone number of the location selected in the combo box. This information is taken from a seperate table.

Any help would be great. Thanks

View 1 Replies View Related

Need Zero To Show Up In Column If No Fault Totals Exist

Aug 14, 2007

My problem is if there is no FaultTotals nothing shows up. I would still like for the Four Columns to show data and have a 0 in the FaultTotals.

How can I accomplish this?


In a nutshell I am totaling all Cosmetic Faults based on the SystemGroup CTWT and a Date Range. If there are
no Cosmetic CTWT Faults for the DateRange I want a zero. The query works great as long as there is at least
One FaultTotal for the Date Range.


SELECT "1-3" AS Truck, "Cosmetic" AS Category, WorkUnitsFaultsMainTBL.SystemGroup, Count(*) AS FaultTotals
FROM WorkUnitsFaultsMainTBL
WHERE (((WorkUnitsFaultsMainTBL.FaultCategory)="Cosmetic") AND ((WorkUnitsFaultsMainTBL.TodaysDate)
Between [Forms]![Queries_ReportsFRM]![StartDateTxt] And [Forms]![Queries_ReportsFRM]![EndDateTxt]) AND ((WorkUnitsFaultsMainTBL.BuildID) In ("E010","C809","F001","C810","F187","A910","M173","M174")))
GROUP BY WorkUnitsFaultsMainTBL.SystemGroup
HAVING (((WorkUnitsFaultsMainTBL.SystemGroup)="CtWT"))
ORDER BY Count(*) DESC;

View 3 Replies View Related

Enter A Parmeter Value Intermittent

Aug 19, 2005

Hi all,

I have a problem in a database I'm designing at the moment. Basically I have a form (frmMain) which is filtered (from another form). I can then go through the filtered records no problem. I made a query, and also a report based on this query. The query has all fields from the main table (same as frmMain), and I want to base the query on a field on the filtered form (fldJobRef). Now, sometimes this works fine, othertimes I get the box saying "enter a parmeter value" for Forms!frmMAIN!fldJobRef. The form frmMain is open at this time, and I can see plainly and clearly on this form a fldJobRef ! If I go into design view in the query and "build" the criteria again, it works for a short while, can anyone offer any suggestion?

Thanks

[UPDATE]
I found that if I simply open the main form without any filter at all, then the query works fine.

View 2 Replies View Related

Intermittent Database Access

Dec 27, 2006

I have a website that runs on a host out in the real world. I need to do some work on it in a test environment. I started IIS on XP pro and created a website under the default wwwroot. The site runs and connects to a MS Access database and will show a list of records pulled from the database, but only once. Refreshes fail with an error: Provider (0x80004005) Unspecified error.

If I wait a few minutes I can access the database again. I can not find the problem. Please help.

View 5 Replies View Related

Link Criteria

Aug 29, 2005

Is there a way of formulating a link criteria on opening
a form whereby the link on the form is a file on disk
which has the same ID minus the .jpg.

So instead of this

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmImage"

stLinkCriteria = "[ProductID]=" & "'" & Me![txtProductID] & "'"
DoCmd.OpenForm stDocName

the Me![txtProductID] will be the jpg file on disk minus the extension
of course

If the ProductID is not = JpgID then the form doesn't open.
I need somehow to test for the existence of the file itself.

Do hope I have been clear enough
Look forward to some suggestions

View 3 Replies View Related

Then Click One From Listbox Show Fault Info In Textbox

Aug 29, 2006

hi, i have list box and the source coming form Query. i want when i click on
one in list box want it will show [faults] field in textbox from query
the field [faults] is a memo can someone help me
__________________
David

View 3 Replies View Related

Intermittent Problems With Record Locking

May 2, 2007

hi,
I've got a database that is split -front/back on a server. It is used by roughly 5 people. Usually one or two people use it at one time, with one of the users who leaves the application open at all times. Sometimes when the users are working in the screen, which would be in the subform, an error like "record is locked" pops up and they cannot enter any data. This happens on a date field where I have put some code to auto fill the date if the previous record has today's date in it. It doesn't seem like it should be locking on that. Should it? This is what I have in the code:
Code:Option Compare DatabasePublic DateValue As DatePublic DatePresent As BooleanPrivate Sub DateLog_AfterUpdate() 'fill the date with previous entry - if it has been entered in same session DateValue = Me.DateLog.Value DatePresent = True End SubPrivate Sub DateLog_GotFocus() If (DatePresent) Then Me.DateLog.Value = DateValue End IfEnd SubPrivate Sub Form_Load()Me.RequeryDatePresent = FalseEnd Sub

View 2 Replies View Related

Link Criteria Problem

May 19, 2005

Hello,

I have cboUtilizator (User) for choosing username, txtp for password input and a text box called lngEmpID wich Control Source =[cboUtilizator]. The user select his username, enter his password then when he click the OK command button the code verify if the password is correct for selected user, and if it's correct based on lngEmpID, opens a ChangePassword form showing the user data. This way he can change only his password, 'cause this is the only information he can access.
The problem is: If I put this code


Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ChangePass"
stLinkCriteria = "[lngEmpID]=" & Me![lngEmpID]
DoCmd.OpenForm stDocName, , , stLinkCriteria


to a command button, it's OK. But if I insert it in the code, the way showed bellow, it isn't working anymore, on the line

stLinkCriteria = "[lngEmpID]=" & Me![lngEmpID]

it give me the following error message:
"Run-time error '2467'
The expression you entered referes to an object that is closed or doesn't exist."

Can anybody help me to fix this?

Thanx,
Attila


Private Sub Command5_Click()

'Check to see if data is entered into the UserName (cboUtilizator) combo box

If IsNull(Me.cboUtilizator) Or Me.cboUtilizator = "" Then
MsgBox "Va rugam introduceti numele de utilizator.", vbOKOnly, "Completare obligatorie"
Me.cboUtilizator.SetFocus
Exit Sub
End If

'Check to see if data is entered into the password box (txtp)

If IsNull(Me.txtp) Or Me.txtp = "" Then
MsgBox "Va rugam introduceti parola.", vbOKOnly, "Completare obligatorie"
Me.txtp.SetFocus
Exit Sub
End If

'Check value of password in table users (Utilizatori) to see if this matches value chosen in combo box

If Me.txtp.Value = DLookup("Parola", "Utilizatori", "[lngEmpID]=" & Me.cboUtilizator.Value) Then
If DLookup("TipUtilizator", "Utilizatori", "[lngEmpID]=" & Me.cboUtilizator.Value) = "Admin" Then
lngMyEmpID = Me.cboUtilizator.Value

DoCmd.Close acForm, "LogareConsolaUser", acSaveNo
DoCmd.Close acForm, "Meniu", acSaveNo

Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "ChangePass"
stLinkCriteria = "[lngEmpID]=" & Me![lngEmpID]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Else

Dim stDocName4 As String
Dim stLinkCriteria1 As String
stDocName4 = "ErrLog"
DoCmd.OpenForm stDocName4, , , stLinkCriteria1
Me.txtp.SetFocus
End If
End If

End Sub

View 2 Replies View Related

Run An Append Query Using Link Criteria?

Mar 21, 2007

Hi

I have an append query which runs from a command button. It transfers all the fields I want it to but when I run the query when in one particular record it not only appends the field for the current record but appends the fields for every other record in my table. I know I should be running the query using stLinkCriteria but I'm not sure on the syntax for the code, see below:

stDocName = "qryAppendOtherAdults"

stLinkCriteria = "[ApplicationNum]=" & "'" & Me![ApplicationNumber] & "'"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me.frmOtherMember.Requery

Can someone help me with this one please?

View 2 Replies View Related

Intermittent Generic Error Messages Causing A Major Inconvenience

May 26, 2006

Hi,

I am absolutely puzzeled with a problem we are having with an Ms Access 2000 application, which is the front end to a SQL Server database. We have a database which was working fine for over 6 months. And now all of sudden users are intermittently getting the error messages:

"Error Executing this command"
AND
"You cancelled the previous operation."

I removed the error handling code from the application to get more detailed error messages and we got the following error message:


The expression On Click you entered as the event property setting produced the following error: .

The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].

There may have been an error evaluating the function, event, or macro.


This is only intermittent and when they close the database and open it again it works fine for a little while and then the error occurs again. As you can imagine this is a major inconvenience for users.

I have searched the web and forums and there just seems to be 101 reasons why this could happen. Nothing has changed on our system which might cause this occur so I don't know why this is happening.

Could anybody provide any ideas on how I might go about trouble shooting it. We are thinking of opening a support call with Microsoft but the error messages are so generic that I'm not sure what help they could be.

Any help / ideas or suggestions would be greatly appreciated.

Many Thanks

View 4 Replies View Related

Is It Possible To Choose No Criteria On A User-defined Criteria Form?

Sep 15, 2005

I created a form that allows the user to choose the criteria that they want to see on a report using =Forms!formname!controlname in my query. It works great but I want to also allow the user to choose nothing and return all records instead of limiting them to choose just one type of record. Is this possible? Before I created the form my query had the [Enter parameter] on one criteria line and [Enter parameter] Is Null on the next criteria line and that was working great for my use but I need to create a simple form for other users.

View 1 Replies View Related

Update Excel Spreadsheet That Link To A Form While Users Having Form Opened

Sep 17, 2014

What is the best way to accomplish this? I have a database that split into the Front end and the Back end. The form that the users entering the information uses the queries from two sources. One is the a table within Access and the other is an excel spreadsheet that I link to it. How can I update /replace the Excel spreadsheet while users are using the form of the front End?

View 9 Replies View Related

Link Form To Another Form Based Upon Specific Data

Feb 1, 2005

As the DB is too big to put as an attachment i have attached the relationships.

I have a form 'Call next customer', based upon call details table. Within this the Customer ID field. I want to place a button on the form 'place an order for this customer' which would take them to an uncompleted order form but with the Customer ID already filled in.

I have managed to this to some extend but the button directs me to a completed from for that customer - a past order.

Any ideas? I will, around 6pm tonight (1 Feb '04) upload the database upon my website to view: www.lecoqsportif.co.uk

Thank you very much for your time.

View 1 Replies View Related

Link Table To Form

Aug 18, 2005

Hiya

Please be gentle I am no expert at this sort off thing.....

Is there a way of clicking on a line in a table and the relavant form opens in a new window. You can then edit the form and the table is updated.

Thanks

Gibby

View 3 Replies View Related

Link More Tables To The Same Form

Mar 21, 2006

Hi there,

I have a question: Is it possible to link more than one table to the same Form in order to keep previous data?

Thanks a lot

View 1 Replies View Related

Problem With Link ID In Form

Sep 6, 2006

Hi

I have a form with buttons that I've found i the sample database.
When I click the buttons I get one of my forms in the destination window.
But the form doesn't link to the right link ID, is this something you can code?

Attached is the sample. (not with my form in though, but you get the picture)

Mikael

View 4 Replies View Related

Form Picture Link BUG

Sep 13, 2006

Hi all,

I've got a little problem when users move through records on a form that has an image embedded the source of which changes for each record linked using a filename field and path in the database. The pictures are served across the network from another computer. Some of them are relatively large and take a second or so to load.

The problem comes when a user tries to browse too quickly through the records, when the pictures are importing a box appears advising the user, if the user clicks through too fast the box sticks and remains visible in the foreground right in the middle of the screen, it even remains when Access is exited. You have to end the process in Windows Task Manager in order to get it to disappear. I'm using Office XP with service pack 3, does anyone know of a fix for this bug

or if there's no fix

is there a way I could maybe delay each record by about 1 second to allow a picture to load as the user browses through using the record selectors at the bottom of the form?

Many thanks for any advise given.

View 1 Replies View Related

How To Link Form And Subform

Jun 26, 2005

Hi every body. i made a bounded data entry form that is based on a form and a sub form. But when i try to run it i get many errors. I be happy if some one help me how i link these two tables since draging the sub form to the form did not establish the reletion automatically! I be happy if some one teach me how to link form and sub form together. Below u can see the two query which is for the main form and sub form.thanks


http://i5.photobucket.com/albums/y180/method007/constraint.jpg =====> table reletionships pic

QTimeKeepingemployeno,name ==>query

Code:SELECT dbo_Employee.employeeno, [dbo_Employee]![lastname] AS EmpNameFROM dbo_Employee;

subform query:

Code:SELECT dbo_Hours_worked.*, dbo_Task.descriptionFROM dbo_Hours_worked INNER JOIN dbo_Task ON dbo_Hours_worked.Task = dbo_Task.taskcode;

View 1 Replies View Related

Is It Possible To Link A Form From A Table?

Nov 1, 2006

I am pretty sure the answer to this is no but I need to ask anyway.

Is there a way that your tables can be set up so clicking on a record will take you to the corresponding record on the form (like you can do in Filemaker). I have a client who doesn't want queries or reports set up (!!) just wants to be able to filter and search using the table and then link to the form...

View 1 Replies View Related

Link Table To Form

May 30, 2014

I have developed a Microsoft Database Access 2010 Table and associated Form..I open both the Table and Form and a separate tab appears for each, then I can switch from either the table or form by clicking the tab.In the Table screen I select a record, as an example, record number 1926. How can I link this record with the form so that when I select the form tab, record 1926 is shown?

View 4 Replies View Related

How To Link Fields On A Form

Jan 8, 2014

im creating a workers database and iam a beginner in access.i have created one table and a form like with the following details workers number ,name ,position attendancy and allowance so what i want is is i choose a workers number from the combo box all other details associated with the number should appear how do i do that?

View 6 Replies View Related

Selecting Control To Link To New Form

Feb 13, 2006

Hi,

Have been developing an Employee DB which includes sickness records and interview information. Have mangaged to sickness records but now I need to link interviews to these specific records which is where I am having a problem.

All sickness records are shown on a sub form and I attached a button at the end of each record so that I can can add interview information that is linked to the sick record through SickID but just cannot get it to work.

Have attached relevant forms and tables and could really do with some help as am pulling my hair out here.

Cheers

View 2 Replies View Related

Link Between Query And Form Lost.

Mar 2, 2007

Hallo,

I'm quit new to Access.
I have an existing application. There is a form with some selection fields. When I press the button report then following is executed:
- The report object is called with DoCmd.OpenReport Rpt, acPreview
- This report has object dependencies with the query qryRptClient AND the form frmClient. This is the form with the selectia criteria.

The query "qryRptClient" has nested query's but in some of them, in the where clause fields are tested like: "WHERE (tblTempProject.country=forms!frmClientReq!cmbCoun try"

Generating of the report works correct ==> so far so good.!

Now the application must be extended by exporting this report result to XML file. So I have added on the form another button wich is calling the same query Like:

Application.ExportXML _
ObjectType:=acExportQuery, _
DataSource:="qryRptClient", _
DataTarget:="c:Projecten estexports" & FileName


But now I get for every selection criteria field which is used in the query's a popup window asking what the value is of this form object.

So, I understand with the report that there is a link between the report, query and the form but in the second occassion how do I get a link between the query and the form.

Can somebody help me? Thanks in advance.

Nico.

P.s. When I try this with northwind database, with the query invoices, it working correct and I get a XML file! So the export on itself is working.

View 1 Replies View Related

Link A Checkbox On My Form To Another Table

Oct 7, 2005

This form is bound to another table. Now i want to include a checkbox on this form that will be bound to an entirely different (small) table. How do i do this? :)

View 14 Replies View Related







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