I have an SDK that I normally use with VS.NET. I cannot seem to add the .dll as a Reference in my MS Access 2003 database. Is there something I am doing wrong, or a workaround to get it to work? I have .NET 3.0 installed on the PC.
Basically what I have is a database for tracking/logging parcels that arrive to the office. I want to be able to generate a reference number based on the date of arrival: i.e. the reference number should be ddmmyy### where ### is a sequential number. I know that I could just use the primary key's autonumber, for the sequential number but if I do this then the sequence will not restart at 1 on each date and because we receive a lot of parcels the reference number will grow to be too big to print out on the collection slips in just a few months.
two tables (one with the date and staff on duty that day and the other with the parcel's info') with a one to many relationship
I also have a query (Named: FullLog) that picks up the following data from the tables:
The field named Count is a DCount function that I used to find out the number of times each date is repeated. This is the Expression that I used:
Count: DCount("*","FullLog","DateReceived = " & [DateReceived]) [Note that DateReceived is first converted into a string using CStr()]
This is as far as I have been able to get, I have been looking for weeks for a solution to this problem but I have yet to find one. I don't even know if the DCount function is the correct way of doing it, I did read somewhere that this produces a very slow query.
Effectively what I want to be able to get is something of that resembles the following
Please help, how can I refer to the field of a subform in Visual Basic when the (main) form is open?
A) Private Sub supplierID_AfterUpdate() Forms![invoices]![KombináltLista4].Requery End Sub
B) Private Sub supplierID_AfterUpdate() Forms![details1 Segédűrlap]![KombináltLista4].Requery End Sub
These don't work. (The main form: INVOICES; the subform:DETAILS1 Segédűrlap; KombináltLista4 is the name of a combo box)
The version B work, when I open the form and the subform together, but of course I'd like to work only on the form (where the subform is displayed as well, but I can't refer to it...)
I need to change the reference "Microsoft Access 9.0 Object Library" in Access 2000 with the "Microsoft Access 11.0 Object Library" but I can't de-select it 'cause it's used by the program. Another problem is that I tried to import the 11.0 copying the file and when I select it from the panel control it seems to import without problems, but when I search it in the list, the 11.0 doesn't exist. How can I import it?
Hi, I have been designing a database on my computer which seems to be working fine; 2 more users in the company should be able to use the database.In order to see if everything was working properly on other computers, I have put a copy of my db on the server and tried to open it on the other users computer station. Unfortunately, the reference library that I have been updating during the design of the database doesn't seem to apply to the other computers. I have been trying to update it on the other machine but the references on the tool menu in open module is not available. I didn't expect this to hapened and I am not sure what to do, what would be the apropriate method to make the library available to the other computers?
Is there a way to insert a calendar on a form from which a user can select a Month year and day similar to using the calendar on Outlook or Lotus Notes to set up or view appointments or meetings?
Hi, I have created an mde that was installed on more than 30 computers. All of them work fine but one who gets a message saying that there is a broken or missing reference. How can I repair this knowing that I cannot access the references in a mde? Thanks!
I have a form (frmSWL) with a subform container on it (subfrom1) which has a source object called frmSite. How do I reference frmSite from another form so I can apply a filter to it??
I'm trying to achieve something that I'm sure someone has figured out long ago. I have a DB that currently only shows the zip code for certain records. Is there a way that I can have the DB take the current zipcode, reference a zip code table, and then return both the zip and city/state?
My primary key, RefNumber, is a sequentual Autonumber field. I want to creat my own Custommade autonumber field, but the catch is: My autonumber field should have any of the following (selectable by the user from a combo box from a Form) attached in front of the number: DPR,DPZ,DFE,DGL,DMI,DGJ or DPE. ie: the autonumber is at 14. The user selects DFE, but this is only the seconde choice made of DFE.
So the end product should be: RefNumber = 14 .........................................DistrictR efNumber = DFE2 or DFE002
Hello, I have been struggling with this for a while, and I'm hoping I can get some help. The problem I have relates to three tables. I pulled the tables off to the side to show the current relationships between them; Please see attached.
Here is my setup. I created a form that has all the fields in tblEntry, and a combo box whose record source is [EmployeeID] in tblEmployees.
The problem, when the user selects from the combo box, I am getting an entry for the field [EmployeeID] in tblEntry, but I am not getting an entry for [CategoryID] from tblCategory. Basically, I want the user to be able to select one thing and to get two entries: [EmployeeID] and [CategoryID].
I have StartDate and EndDate fileds where I enter the date and time the employee starts and finishes his shift (in dddd dd mmmm yyyy hh:nn AM/PM format). However there is a penalty issue that starts at 7.00 PM. How do I set up a non changing reference for 7.00 PM that I can reference to make a calculation. For example I need to calculate penalties for when the employee works hours past 7.00 cutoff time.
I would appreciate any assistance to solve this problem
I have StartDate and EndDate fileds where I enter the date and time the employee starts and finishes his shift (in dddd dd mmmm yyyy hh:nn AM/PM format). However there is a penalty issue that starts at 7.00 PM. How do I set up a non changing reference for 7.00 PM that I can reference to make a calculation. For example I need to calculate penalties for when the employee works hours past 7.00 cutoff time.
I would appreciate any assistance to solve this problem
I am writing a query to calculate a running value, looking at the result of the line above and adjusting the running value in relation to new criteria. Make sense ?
For example
I have a number of dates which each have a value (a) against them dependant on the value in (a) I want to reward it in different ways and store the result in (b), I then want to look at (b) in the result of the above line in acessing how I will reward the next record.
Basically I want to read the value of the result of the line above when calculating the next line ? So it is basically cumulative through the query.
ps just found this forum so sorry for postiong a question first but any guidance appreciated.
Well, thanks to SJ McAbney I have a nice chart on referencing subforms from the main form and what not. I'm still having trouble making it work, so I am sure there is something that I don't understand here.
Private Sub cmdNewCat_Click() Me.frmNavSNewCat.Visible = True Me!frmNavSNewCat.Form!txtCatParID = Me.txtCurrent '<---This is the one the debugger highlights. Me!FrmNamsNewCat.Form!txtCatName = "" Me!FrmNamsNewCat.Form!txtCatNote = ""
End Sub
When I click the cmdNewCat Button, I get this error:
I must be missing a reference somewhere, but I have a form with several calculated fields in it, with the control source as =DateDiff.... They were working fine last week, but now all it displays is #Name?. What happened? I've looked at my references and none appear to be missing. WHich one do I need to add to make this work again? Thanks for you help.
I have designed a report and the underlying query has a parameter that pops-up whenever the report runs. I want to print the value of that parameter in the report header. If I just reference it exactly how it is in the query, while the report runs, it asks for the value of the parameter again! Once with the underlying query and once with the report... How do I ask for the parameter value just once and get the data records filtered using that value as well as print the parameter value?
Classic example of use: I want the report to print records upto a certain date. The date is the paramter value. I want to filter the records based on this date and print the date in the header.
I am using Office 2003. I tried entering this line of VB code : Dim Db As Database but got the following error : Compile error : User defined type not defined
checked the net, which said to open the module window, go to Tools>References and check the DAO 3.06 box... but it said in Office 2003 i dont need to do this...Anyway i tried looking at the references but DAO 3.06 is not even there... pls tell me what to do
I can see how to iterate over all the controls to find the Tag collection, then do something with it.
Problem is that since I know the name of the tag, I just want to do something with it (height, visibility, etc). But I can't figure out how to reference a tag directly without iterating over all the controls.
Hi, very new to Access and wanted to check something was possible before i proceed with it,
basically i want to assign a reference number to my records automatically based on data that has been entered by the user, looking something like this
AE/13MAY07/01
AE is a standard thing and will never change.
13MAY07 is 13th May 2007, which is a date which has been entered by the user for when a specific piece of work is to start. There will be a Yes/No box next to where they enter the date saying whether or not they want a new reference number assigned. If they select Yes, the reference number will be populated with the date specified.
01 will be a number which goes up in increments of 1 based on the MAY07 detail. The number will start at 01 for every month/year, eg
MAY07/01 MAY07/02
JUN07/01 JUN07/02
MAY08/01 MAY08/02
Hope someone can understand what im trying to do and can help.