Recall - Search Seperate Table

Nov 17, 2004

I want to be able to find the last value entered into a table from a form that is not based on that table. How do I go about this?

What I am trying to do is produce a 'purchase order number system' that adds 1 onto the previous number, but this purchase order can be generated on many forms and for many reasons across the database. I do not want to use autonumber.

Cheers,
Recall.

View Replies


ADVERTISEMENT

Recall - BIG Time Search Problem

Jan 31, 2005

I've created a search on a text and date field which has been working fine for few days now. However when I've started to search on the early days in February (i.e. 01/02/2005) it is not finding the records (but they do exist). When I create a record with 13/02/2005 or higher however it does find the record. I desperately need a solution as the DB will fall down without it.
The code I'm using is:

If Not IsNothing(Me.TxtEmpNameSearch) Then
VarWhere = (VarWhere + " AND ") & "[EmpName] ='" & Me.TxtEmpNameSearch & "'"
End If

If Not IsNothing(Me.TxtDateSearch) Then
VarWhere = (VarWhere + " AND ") & "[Dates] =#" & Me.TxtDateSearch & "#"
End If

If IsNothing(DLookup("txtempno", "tblwork", VarWhere)) Then
MsgBox Mes5, OKIn, Ti
End
Exit Sub
End If

Thanks,
Recall

View 2 Replies View Related

Seperate Password For One Table??

Mar 3, 2008

Hey all,
For securing a database, is it possible to set a certain password for users to view just one table? like i've lots of tables in my d.b that i plan to use a workgroup file for different users to view it, but there's one that i only want certain people to access...can this be done at all??

Cheers,
Sue.

View 2 Replies View Related

Fields Generated From A Seperate Table?

Feb 24, 2005

Hello,

I'm making a table with a Yes/No choice many fields which represent subscriptions.

The problem is that the subscriptions available will need to be changed fairly often - will this mean the table and the form associated with it need to be redesigned?

If so, I don't know how to make fields that change depending on a different table.

If this can't be done, I'd be interested to find out how else I could go about this.

Thanks for any help you guys can offer.

View 2 Replies View Related

Recall - Linked Table DB

Nov 23, 2004

I've created a linked table database which is running currently at my offices over a Citrix network. We want to put the database into 2 other sites (initially), however, the drive that all the sites see is slightly different for my site than the other sites (i.e. I see it as W: but they see it as P, but physically they are the same drive. Obviously, the links to the tables would have to be changed so the other FE could see the BE. I can't do this from my site as I cannot see the drive as they see it. I don't want them going into the FE design to update the linked table manager everytime I make changes and send them a new DB.
Does anyone know how (or have an example DB) to create a button on the FE that will ask the user to select the location of the BE with a file browser, for example and then update the table links.

Think this is a bit of a tough one, but I'm sure someone must have done it at some point.

Cheers,
Recall.

View 4 Replies View Related

SQL SP To Update 2 Records Using A Value Found In A Completly Seperate Table

Nov 9, 2005

OK this may be a bit of a weird one.

Here are my tables:

Table: Relationship
PK: RelationshipID int (Indexed No Dup)
FK: ContactID int (Indexed No Dup)

Table: Contact
PK: ContactID int (Indexed No Dup)
FK: RelationshipID int (Indexed Dup Allowed)

I also have following Local vars:
@Contact1 int
@Contact2 int

How do I create an UPDATE statement that will read RelationshipID in Relationship where Relationship.ContactID=@Contact1 and use it as the value to update the Contact.RelationshipID for all records in Contact where Contact.ContactID = @Contact1 or @Contact2

Hope this makes sense?

Also please let me know if I should post this in the SQL area instead.

View 1 Replies View Related

Append Data From Unbound Combo Boxes To Seperate Table

Aug 4, 2007

I have a form setup that has 5 combo boxes where a user will select one item from each combo box. Each combo box is from a differant table. Once this is done I want to be able to append or update the results into a new table I created. My problem is I don't know how to submit the data from the combo boxes to the new table. Can anyone help me with this?

Thanks

View 11 Replies View Related

Seperate One Column Into Two

Oct 20, 2006

Hi,

I was wondering if there was a query to run that would seperate a field in a column into to.

The Current Field is Prec and the entries all are numeric numbers followed by a dash and another numeric number i.e.
9700064-0
7600049-0
Another 7 digits-one digit
I would like the first 7 in a column called prec1 and the one after the dash in a column called grp

Thanks in advance

View 2 Replies View Related

2 Seperate Sub Forms On One Form

May 24, 2005

Is it possible to have 2 sepaerate sub forms, with different source objects on a single form. I thought it was, but every time I save the main overall form, the source object of the second subform changes to the source object of the first.

Can anyone shed any light on this?

View 3 Replies View Related

Seperate A Imported Field From Outlook

Apr 1, 2008

Hi

I have imported data from Outlook. The field I am interested in is the
'Subject' Field. This contains 3 effective segments,
1 employee name
2 description
3 job and sub job number

example of text in field is

M.Heywood Completed Job No.1708 8
N.Curry Completed Job No.1477

I wish to move the employee name into another field and also the job and sub
job number. I have tried the following Right() Function but it is not quite
working as I want

Right$([Subject],InStr([Subject],"Completed Job No.")-1)

For the records above the results are as follows

No.1708 8
No.1477

What I really want is to only get the text after the .

Any help please as this is my first time with this function

Thanks

Richard

View 1 Replies View Related

Link Two Seperate Database Tables

Mar 9, 2005

Is it possible to create a database and link this to a form and another database? What i want to do is link a network database with a local database on a client machine?

View 3 Replies View Related

Import A Csv File And Seperate Bad Data

Jun 15, 2005

I want to import a csv file and store the good data (which matches input masks, validation etc) into one table, and all the bad data which is rejected into another table.

I've read a bit about an import error table, and although I do get errors when importing the csv file, no such table is generated.

Many thanks

Cc

View 1 Replies View Related

Seperate Date And Time Fields

Jun 12, 2006

I'm working with a linked table that has a seperate field for the date, and a seperate field for the time (which show in the linked table as '11/30/1899 9:46:00 AM'). I need to calculate the time difference between 2 entries.

How can I merge the 2 fields into a combined date/time field for my calculations?

Thanks,

Sup

View 4 Replies View Related

SubForm Requery From Seperate Form

Aug 11, 2005

Hi. Having a bit of a problem getting a subform to requery/refresh after running a query from a seperate form. The seperate form is acting as a 'search form' and running query qSearch.

I've tried various things (requery the form, subform etc) but here is the code I'm currently using:

Private Sub RunqSearch_Click()
DoCmd.OpenForm "Papers"
Forms.Papers.RecordSource = "qSearch"
Forms.Papers!Authors.Form.RecordSource = "qSearch"
Forms.Papers!Authors.Form!AuthorName.ControlSource = "qSearch.AuthorName"
Forms.Papers!Authors.Form.Requery
Forms.Papers.Requery
DoCmd.Close acForm, Me.Name
End Sub

The main form is requerying fine, but the subform isn't. Any help would be appreciated. Thanks

View 4 Replies View Related

Seperate Text Boxes From Labels

Jun 8, 2006

I am learning access on my own using MS Press step by step manual and it tells me to hold down the shift key while selecting the text boxes that are next to the labels, but when I do the labels get selected also . how do I disconnect the labels from the text boxes in order to insert space between the labels and the text boxes as it intructs me to in the book. I am able to select the labels separately, but it will not allow the text to be selected separately.

View 1 Replies View Related

Sharing Variables Between Seperate Reports

Nov 29, 2004

Hi ya,

Still working on a products catalog. I am creating this by printing a couple of separate reports, each with its own category.

At the end of a report A I store a value (number of pages) into a variable "NumPage", defined in Visual Basic. I have made this variable public and also the sub in which it is altered (report_close()) is public.

Now I should have stored the number of pages of report A in NumPage, enabling me to start report B with the right page. However in the public sub (on_open()) of report B I am not able to display the value of NumPages (just using a messagebox to check if it works).

Does anyone know whether it is possible, and if so in which way, to pass a variable created in a module of report A to report B?

Cheers,

Thomas

View 1 Replies View Related

Seperate Database Records In Divs?

Feb 8, 2005

I am trying to create a page that can display 4 different records from a database, each one in a different div container, for a news page.

I have an access database containing news records - headline, news and date. Each record also has its own auto-numbered ID.

So far I have managed to get the asp page to display all of the records in a list by using:

recordset.movenext
Loop

and I have managed to get just 1 displayed by using:

SQL = "SELECT * FROM tblNews WHERE ID=1" and changing the ID number.

But I can't seem to find a way to display each in a different div container on the same page. Can anyone help please? I think this is really obvious but I just can't see it!

Thanks.

View 2 Replies View Related

Query Problem With Two Seperate Fields

Mar 24, 2005

I am working on a DB and would like to include the following information on a report. The information is as follows;

tblPersonnel.Name
Tony
Jennifer
James
Tom

tblPersonnel.LOA
tblPersonnel.Vacation

Tony is on a Leave of Absence (LOA) Jennifer is on Vacation which leaves James and Tom at work. Lucky them! The fields "LOA" and "Vacation" are two separate check boxes.

I would like to limit the query to display employees that are either on a "LOA" or on "Vacation" Since they are in two separate fields how do I write the expression? I know how to limit it to only employees on LOA. Or employees who are on vacation, but how do I qry those who are on vacation or LOA?

View 3 Replies View Related

Importing Text From Seperate Forms

Jun 12, 2007

I am having a problem with importing text from one form to another one. I am logging into the company server and getting the database from there. But for some reason the text will not import on my machine but it will on others. Any help would be greatly appreciated.

View 1 Replies View Related

Splitting Address Into Seperate Fields

Jul 22, 2007

Hi,

I have a an address field in my current MS Access table that has records following this sort of format eg. 21 Brown St, 21/56 Smith St

I want to separate every word in this field in to it's own field eg. field1=21
field2=Brown
field3=St
Addresses come in different formats (see examples above, with / or - etc.)

I'd like some code to complete this in VBA - please note I'm very new to programming so unfortunately everything must be explained.

Thanks

View 1 Replies View Related

Recall - Look Up Last Entry

Nov 17, 2004

I want to add a system of getting unique numbers into my database based on the month followed by a unique 3 digit code. For example, if it is February and this is the first record then the reference will read 02/001. Any ideas how I would go about doing this.
I've set up a seperate table called Reference numbers as these reference numbers will be used on any number of forms.

Cheers,
Recall.

View 1 Replies View Related

Recall - 7 Records Into 1

Feb 9, 2005

I've set up a DB to monitor employee hours. I have an employee table with a relationship to work done (one record = one days of work), so everyday is a new record in the work table. This is fine to monitor daily work patterns. However I need to calculate weekly work and other calculations (such as sixth and seventh shift payments, 15%payments, 25% payments etc). Is there any way that I can create a query that will give me one record for an employee that gives me start and end time for a Sunday, same for a Monday etc.

In other words I want to put start and end time for a Sunday to Saturday ( 7 records) into 1 record at the end of the week? (for each employee in the DB.

Any ideas?

Recall.

View 1 Replies View Related

Merging 2 Seperate Types Of Query Recordset

Feb 2, 2006

Hi there,

I have to queries as below

one which shows a few stats figures etc all on a single row but has 6 columns altogether

the other shows some figures by function area and as there are like 7 function areas there are 7 rows but only 2 columns

i want all this informaiton onto one report so i guess that i need to merge this data together onto the one query some how

whats the best way to do this?

thanks

View 2 Replies View Related

Subtracting 2 Dates And 2 Times From Seperate Boxes

Jul 6, 2007

Jus thought I'd offer this code to the forum as spent a long time finding a suitable solution..

SELECT DischargeTime.ID, [Arrival Times].ID, [Arrival Times].[A&EArrivalDate], [Arrival Times].[A&EArrivalTime], DischargeTime.[Date of outcome], DischargeTime.[Time of outcome], DateDiff("d",[A&EArrivalDate],[Date of outcome]) AS DateDifference, [Time of outcome]-[A&EArrivalTime] AS TimeDifference, IIf([DateDifference]>=1,([DateDifference]*(1/24)*576)+[TimeDifference]*(1/24)*576,([DateDifference]*(1/24)*576)+[TimeDifference]*24) AS hours3
FROM DischargeTime INNER JOIN [Arrival Times] ON DischargeTime.ID = [Arrival Times].ID;

Basically I had an admission date and in a seperate box an admission time and then I had a discharge date and discharge time again in seperate boxes. The information was spread over two tables hence the join. How I solved the problem was by gaining both the days difference between and then the difference in hours and then I created an iff function and played around with it till it worked. Dont really know how i got it working in the end but it does so hopefully this code will save some1 alot of time!

(I know that if id shown my dates as date/time in 1 box the problem would have been much easier solved, however I dont personally like displaying dates and times that way especially when you have inexperienced people entering data)

Find below a result from the query

DischargeTime.IDArrival Times.IDA&EArrivalDateA&EArrivalTimeDate of outcomeTime of outcomeDateDifferenceTimeDifferencehours3
1119/06/200715:0420/06/200712:00103:0420.93

View 2 Replies View Related

Recall - Combo Box Values With VBA

Nov 9, 2004

How can I specify the list that appears in a combo box by programming it with VBA.
I have eight unbound text boxes on a form and I want a combobox to generate its drop down based on the values in these boxes.
I think I'd have to create 8 variables and take the values from these text boxes and assign to the variables. The bit I get stuck on is how to make these variables appear in the combo box list.

Please help,
Recall

View 1 Replies View Related

Recall - Export To MS Word

Nov 17, 2004

I have a template fax set up in Microsoft word and want to be able to export fields from my database (in form view) to the word document. For example, I have a 'purchase order No' on the access form which I want to send to the Word document. When exported I then want the user to be prompted to save the document as a new name so they do not overwrite the original template fax.

Any ideas guys,
Cheers,
Recall.

View 1 Replies View Related







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