I've been using this database now for a good few years without many problems but now that I upgraded from 2000 to 2003 It's been playing up on me :confused:
The problem only occurs on my PC & not anyone elses, so I don't think it's a database problem but maybe something on my machine. I have not upgraded any other PC's yet. Only mine as a test.
The database is split & shared on our sever with each user having a copy of the front end on their PC
I even copied a working front end from another PC to mine but it still fails.
I've installed/removed access 2000 & 2003 a couple of times now but nothing seems to help.:confused:
Oh...I have checked the references
the only difference I see is that 2000 has Microsoft Access 9 object library & 2003 has Microsoft Access 11 object library
http://johnviki.com/images/2000.jpghttp://johnviki.com/images/2003.jpg
The following code has been used to simply copy the contents of two fields[memo] and [footer] to two other fields [memosent] and [footersent]. The code works up to the point where it reaches the "accmdcopy" for the second field. At this point I get a Run-time error 2046-the command or action copy isn't available now. The code following works OK if I exclude that line. I cannot see anything wrong with it. My searches of this error do not provide any answers as they generally refer to opening and closing forms or reports when the Database window is not in view.
Can anybody throw some light on this please? :confused: Private Sub Command59_Click() DoCmd.GoToControl "memo" DoCmd.RunCommand acCmdCopy DoCmd.GoToControl "memosent" DoCmd.RunCommand acCmdPaste Me.Footer.SetFocus DoCmd.RunCommand acCmdCopy DoCmd.GoToControl "footersent" DoCmd.RunCommand acCmdPaste DoCmd.GoToControl "memosent" End Sub
I have searched in vain folks. I tried the microsoft website relating to the known bug about Error 2046 as it relates to openform using the docmd but I couldn't get it to work, either work around of the 2 listed.
So I come to you all.
My problem. I have a form that opens and the kind user enters his/her information into and then they click SAVE. Naturally I have a little "better mousetrap" YES/NO/CANCEL window appear that is coded with cases for each option.
YES being the norm (they are sure they want to save it so do it) they click it the nice little option goes away and promptly returns them to the same window they just entered there stuff into and not back to the main menu as it had forever up until now. So they of course being the good users try it again with the same results. Forever basically until they get sick of it and then they call me.
I get no error messages and no saving of the record NOTHING.
Can someone enlighten me on how best to work around or better fix this problem?
I have the following code linked to an event. when I run this I am getting a run time error that says "Data type mismatch in criteria expression" Any ideas on what could be the problem?
Private Sub Command2_Click()
If IsNull(DLookup("[Acct#]", "qryTest", "[Acct#]=" & Forms![Form]![Account])) = True Then If IsNull(DLookup("[Acct#]", "qryTest2", "[Acct#]=" & Forms![Form]![Account])) = False Then
DoCmd.OpenQuery "qryTest2", acNormal Else MsgBox "The Account Number was not found" End If Else DoCmd.OpenQuery "qryTest", acNormal End If
If Me!MAJOR_CD = "616" Or "614" Or "176" Or "613" Or "F16" Or "612" Or "611" Or "650" Then MsgBox "MUST COMPLETE ENGINEERING SURVEY BEFORE RECEIVING DIPLOMA", vbOKOnly, "DIPLOMA PICK-UP" End If
End Sub
I am using Access 2000 with a search feature to find students by entering an ID_Number. It finds the person in the database and it is supposed to show a pop-up message if the person in the database has either one of MAJOR_CD on their records. It returns this error:Run Time Error '13': Type Mismatch.
I have a simple note section on my form (data type set to memo). This is where my staff enters any notes when they speak to a student. For some reason, on a handful of records (3-5 of 3,000 records) a run-time error occurs when the user attempts to edit or add anything to the notes.
Does anyone have any ideas on why this is happening? :confused:
Im building a new database using Access 2003 SP2 on windows XP SP2 with 1 GB RAM.
When i try to execute the following line of VBA code I get an "out of memory" error:
Form_Confirmation.txtDept = cboDept.Text
Before this line of code I don't query any data or open any DAO connections, Im only checking the entered values in various text boxes and combo boxes on a form. I have also tried rebooting my computer and it still gets stuck at the same line.
What i basically want to do is just move data entered into text boxes on a shipping order form i created and present that data on another form to confirm the entered data. The error occurs when i try to move data from one form to another. The database is still only 1MB with only 5 tables, each with only a few records in them just for testing.
Do i need to install a service pack or download something to fix this error?
I get the subject run time error when I try to past a record. The error reads:
"The value you entered doesn't meet the validation rule defined for the field or control."
Then it takes me here in the VBA:
Private Sub cboEmployee_AfterUpdate() Me.RecordSource = "qryHours" Me.Refresh End Sub
More info: The form I am using is a continuous form. The record source for the form is "qryHours". The combo box "cboEmployee" is a drop down they use to select their name, which updates the form with the hours they have logged into the system.
Because the projects they work on are the same from week to week they would like to copy and past records, making keeping track of their time less time intensive.
Short Introduction. Table 'People' - the table contains info about people. two of the fields are 'PersonalEmail' and 'ReferrerEmail'. It means, each person has it's referrer. Referrer is one of the existing persons in the table. Queries. * I have some queries that calculate statistics for persons - No problem. * I have queries that find 1st, 2nd, 3rd, 4th generation for defined person from table 'People' (it means i chose in form any person and want to see, what his 1st generation - where he is the referrer, 2nd generation - where his 1st generation is referrer and so on...) and combine this data with the person statistics, that calculated in the queries i've described above. - No problem. * I'm trying to calculate total statistics for generations described above - query. I succeed to do it only for first 2 generations and get the error: Run-time error '3035' and the message is: System Resource Was Exceeded (it's my translation :) ), when i'm trying to run the 3 generation query.
I am attempting to set up a query which will perform aggregate functions on records from two fields (Speed, Volume) and group them by a time field (SensorTime). This should essentially result in several months of data being combined into a succint 24-hr time period, divided into 288 five-minute intervals.
The problem is that Access will group some of the time values together, but not others. After some detective work I discovered that many of the times that APPEAR to be equal are actually different values when carried out to the 15th decimal point. I learned that this is a result of rounding error within Excel, from whence I originally imported the data.
My question is: can I apply a ROUND function to times in the original table, thereby solving the problem in all the resulting queries (and if so, how)? Or will I need to round the time values in each individual query (this would take some time)? Or is there a better way to equalize these time values that I'm not aware of? I know Excel has a "Precision as displayed" option but I couldn't find anything similar in Access.
I have 3 combo boxes on my form and I am trying to update the second by the choice made on the first. I have a query for each box that when a selection is made it makes a table of information I use in the next box, and after I select something from the first box I get this error, but it does populate the second list. Any help would be really appreciated. Thanks.
I have a Switchboard form that gives the visitor several options from which to choose. All work fine except one.
The one in question loads just fine. This form has an unbound combo box used to search the database. When the user selects an option from the combo box the subform is then populated with the information. All of this works fine. The problem arises if the user tries to close Access (not the form, but rather closing out Access). We get a "run-time error 2455: you entered an expression that has an invlid reference to the property form/report". I've tried clicking on Debug, but Access closes and I cannot see what is causing the error.
Like I said, the other forms work. If instead the user opens another form from the Switchboard and then closes Access, there are no problems - it closes like it should. The error only occurs for this form and only when Access is being closed, not the form.
Anyone have any ideas how I can trap this or how to stop it?
Bound to Column 1 table field 1 = Number table field 2 = Person, table field 43 = EthnicOrigin
I had this running ok until importing fresh table data now I get run-time error with: *The object may be a control on a read-only form *The object may be on a form that is open in design view *The value may be too large for this field
I have created a feild that automatically names an object using the sendobject command. This is done by a copy and delete method. I can give more info on this if necessary.
My problem is that on occasion I get a Run-time error 2033. Name conflicts with existing module, project, or object library.
This error doesn't occur all the time, just on occasion, and doesn't always appear to be consistent each time it happens.
This is one of the last errors that need to be worked out prior to releasing this database to a number of users. Any help or explantion would be greatly appreciated.
Hello I am getting a strange error message run time 2105.
I have created a macro on a menuform to open myform and go to a new record. When this myform opens, I get the run time error and it says you may be at the end of a recorset.
The problem is given to me because probably I have added the following code to the exit event of the SSN fields which is the first field that has focus on my form:
If Len (Me![ssn]. & vbNullString = 0 Then msgbox "You need to enter a SSN" Cancel = True Else Cancel = False End If End Sub
I need to force data entry in the SSN field but the run time error comes up.
Hi, I put password security on the Delete Command Button on my Ms Access form. It works well but if i choose not to delete after putting the password i get the Run-Time Error '2501' Saying run command action was cancelled. How can i solve this.