MSGROUPS.NET | Post Question | Search | About | Groups | Contact | Register | Login



microsoft public excel misc (5666)

microsoft public outlook general (4816)

microsoft public excel programming (4185)

microsoft public word docmanagement (3505)

microsoft public excel worksheet functions (3180)

microsoft public access (3139)

microsoft public windowsxp general (2033)

microsoft public windows vista mail (1618)

microsoft public office misc (1571)

microsoft public windows vista general (1506)

microsoft public windows live mail desktop (1353)

microsoft public access queries (1318)

microsoft public powerpoint (1268)

microsoft public access formscoding (1206)

microsoft public mac office entourage (1193)

microsoft public dotnet languages csharp (1174)

microsoft public access forms (1153)

microsoft public internetexplorer general (1123)

microsoft public access modulesdaovba (1065)

microsoft public windows server sbs (1059)

microsoft public greatplains (1045)

microsoft public mac office word (1018)

microsoft public outlook calendaring (961)

microsoft public excel (928)

microsoft public sqlserver programming (897)

microsoft public project server (874)

microsoft public windowsupdate (812)

microsoft public windowsxp help and support (798)

microsoft public windowsmedia player (781)

microsoft public project (772)

microsoft public mac office excel (759)

microsoft public access reports (758)

microsoft public exchange admin (747)

microsoft public dotnet framework aspnet (735)

microsoft public sqlserver server (700)

microsoft public outlook (697)

microsoft public outlook contacts (678)

microsoft public dataprotectionmanager (659)

microsoft public word vba general (635)

microsoft public windows server general (628)

microsoft public windows server active directory (586)

microsoft public outlook installation (580)

microsoft public word newusers (559)

microsoft public publisher (517)

microsoft public excel newusers (507)

microsoft public excel charting (499)

microsoft public word pagelayout (494)

microsoft public dotnet languages vb (464)

microsoft public vb general discussion (457)

microsoft public development device drivers (444)

microsoft public office setup (430)

microsoft public word application errors (428)

microsoft public sharepoint general (425)

microsoft public windowsce platbuilder (408)

microsoft public access gettingstarted (407)

microsoft public windows powershell (399)

microsoft public frontpage client (391)

microsoft public onenote (391)

microsoft public sqlserver reportingsvcs (382)

microsoft public outlookexpress general (369)

microsoft public access tablesdbdesign (352)

microsoft public pos (352)

microsoft public vc mfc (346)

microsoft public outlook program vba (341)

microsoft public windows live messenger (324)

microsoft public money (309)

microsoft public windowsxp hardware (299)

microsoft public windows 64bit general (295)

microsoft public scripting vbscript (289)

microsoft public windowsxp basics (236)

microsoft public windows mediacenter (230)

microsoft public dotnet general (225)

microsoft public mac office (198)

microsoft public nntp test (195)

microsoft public windows inetexplorer ie6 outlookexpress (191)

microsoft public windows vista music pictures video (153)

microsoft public win98 gen discussion (153)

microsoft public sharepoint setup and administration (139)

microsoft public windows vista hardware devices (130)

microsoft public dotnet framework (104)

microsoft public windows vista performance maintenance (97)

microsoft public visio (89)

microsoft public access 3rdpartyusrgrp (73)

microsoft public dotnet xml (59)

microsoft public access conversion (56)

microsoft public pt windowsxp (36)

microsoft public windows live photogallery (32)

microsoft public access developers toolkitode (31)

microsoft public dotnet faqs (15)

microsoft public dotnet framework aspnet datagridcontrol (10)


microsoft.public.access.formscoding Post New
Items(1203) /13 Next >> Last >|
Subject Posted Replies From
Temporary recordsets

Hi, I have the following code listed below, where I was trying to create four temporary recordsets, the last two recordsets based on the first two temporary recordsets created. All works fine for the first two recordsets with the proper recordset counts and all. When I try to reference the just created recordset, I get an error message saying the recordset does not exist or I have misspelled the name. I do not understand why I cannot reference the recordset in the statement below: Set rstPayments_To_Delete = dbs.OpenRecordset(StrSQL_Payments_To_Delete, dbOpenDynaset, dbSee

3/11/2010 4:08:01 AM 1 =?Utf-8?B?Q2hhcmxlc0Q=?= <Charl...@discussions.microsoft.com>



crosstab query question

I am very new to this, but I would like to ask for some help. I have struggled to get the sql code for a crosstab querie (my 1st!), but I just cannot seem to get it right. This example is simpler and shorter than my actual one, but I'll get the right idea from it. I start with a querie like this; VolID LastName FirstName Tool 123 Smith Sue Hammer 124 Jones Molly Drill 123 Smith Sue Screwdriver 126 Nadeem John Screwd

3/10/2010 11:01:03 PM 2 =?Utf-8?B?QmVja3k=?= <Be...@discussions.microsoft.com>
like * problem

Hi all, Followed some leads on here to filter names in a query, based on the value of a text box on a form, but the query returns all records regardless! Here's the code: Like "*" & ([forms]![frmcallcontacts]![text80]) & "*" Can't work out why everyone on here says it should work, and it don't! Searching for say SMITH within 500 records of full names, and I know there's five instances in five separate records. Any help apprciated Pete

3/10/2010 10:54:12 PM 3 DubboPete <osnab...@tpg.com.au>
syntax for default value

Hi, I have a simple syntax question. Respectively, the following lines of code will default the first PerID where Active=-1 and the first PerID where OHSRep=-1. =DFirst("PerID","tblPers","Active=-1") =DFirst("PerID","tblPers","OHSRep=-1") However, what I want is the first PerID where Active=-1 And OHSRep=-1. What is the syntax for the WHERE portion of the expression? I've tried various forms such as the following but get #Error. =DFirst("PerID","tblPers","Active=-1" And "OHSRep=-1") Thanks in anticipation of some advice. Tesa

3/10/2010 10:31:02 PM 1 =?Utf-8?B?VEVTQTBfNA==?= <TES...@discussions.microsoft.com>
Controls Lock/UnLock Password To Prompt only when UnLocking

Hi, I've used Allen Browne's Locking bound control codes (http://allenbrowne.com/ser-56.html) to prevent overwriting data accidentally and it works fine. After browsing the newsgroup, I now have this on the onClick event of command button called cmdLock Dim bLock As Boolean If InputBox("Enter password!", "Password Required") <> "password" Then Exit Sub bLock = IIf(Me.cmdLock.Caption = "&Lock", True, False) Me.cmdLock.Caption = IIf(bLock = True, "&UnLock", "&Lock") Call LockBoundControls(Me, bLock) This works ok but what happens is everytime I click c

3/10/2010 8:18:02 PM 2 =?Utf-8?B?bml1Z2luaWtpd2k=?= <niuginik...@discussions.microsoft.com>
Blinking labels are nice, but you never want them vanish into thin air, or?

Dear friends, My form comprises three radio buttons. When I press a button, its label starts blinking nicely. When I choose next record at the SAME moment the label is not visible, the label text disappears for that new record. This is quite logical, but does not reflect what a user really wants. Is there an easy workaround? Private Sub Form_Timer() If Me!RadioButton1 = True Then Me!Label1.Visible = Not Me!Label1.Visible ElseIf Me!RadioButton2 = True Then Me!Label2.Visible = Not Me!Label2.Visible ElseIf Me!RadioButton3 = True Then Me!Label3.Visible = Not Me!Label3.Visible

3/10/2010 6:38:07 PM 2 "Henrik Jansson" <pobo...@hotmail.com>
Pass option box selection to combo box query criteria

I have an option box with options 1-4. I have a combo box with data based on a query. I would like to have the option box selection limit the selections on the combo box. Any help is appreciated. -- Teach me to fish! Thanks for the help. Pax, M

3/10/2010 6:00:10 PM 4 =?Utf-8?B?bSBzdHJvdXA=?= <mstr...@discussions.microsoft.com>
IIf question

I recently read that there is a danger in using IIf in VBA because both outcomes are evaluated whether this is necessary or not. For example, the following code crashes, even though division by 0 isn't an expected outcome. dblValue = IIf(intP = 0, 0, intQ/intP) This concerns me because I have lots of IIf statements in my SQL WHERE clauses, though I haven't noticed a problem. Does SQL have the same difficulty with IIf that VBA does? Vicky

3/10/2010 5:01:02 PM 8 =?Utf-8?B?VmljdG9yaWE=?= <Victo...@discussions.microsoft.com>
Rename Message Box

I have a combo box which is set to autofill client name or open message box. When the message box opens, (in the blue area) it shows 32. I've looked everywhere in access that may show 32, figuring I could change it and I can't find it anywhere. Can I change the 32 to reflect Add Client? Private Sub ClientID_NotInList(NewData As String, Response As Integer) On Error GoTo Err_cboClientID_NotInList Dim intAnswer As Integer intAnswer = MsgBox("Would you like to add this value to the list?", vbYesNo, vbQuestion) If intAnswer = vbYes Then DoCmd.RunCommand acCmdUndo DoCm

3/10/2010 4:46:05 PM 3 =?Utf-8?B?SHVtYmxlZCBMZWFybmVy?= <HumbledLear...@discussions.microsoft.com>
User-Defined type not defined

hello I use ACCESS 2000. I'd like to run the following code borrowed from one of the Access user sites, but compiling fails at the Dim statement. ("User-defined type not defined") Private Sub ListAvailPrinters() Dim prn As Printer For Each prn In Application.Printers Debug.Print prn.DeviceName & " on " & prn.Port Next prn End Sub I suspect a Reference Library is not installed, but I'm not sure which one I need. I currently have the following Reference Libraries: Visual Basic For Applications Microsoft Access 9.0 Object Library Microsof D

3/10/2010 4:42:01 PM 6 =?Utf-8?B?Y2lubmll?= <cin...@discussions.microsoft.com>
hello

-- cinnie

3/10/2010 4:34:01 PM 0 =?Utf-8?B?Y2lubmll?= <cin...@discussions.microsoft.com>
subform datasheet question

I have a subform datasheet that I populate the first 2 fields by scanning barcodes. There are more fields, but I want to advance to the next record down so that we can contiune to scan in the data. The additional fields are related, but auto fill based on what is scanned in. How can I advance to the next record. I am going to try after update on the last field. Would this be the correct event? Any suggestion on the event code? -- Matt Campbell mattc (at) saunatec [dot] com Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/

3/10/2010 6:28:03 AM 2 "mattc66 via AccessMonster.com" <u16...@uwe>
Help with creating a model serial number

I have the following code and it works okay, but I need to change how my serial number is created. Right now the user inputs the Serial# starting with the first 7 digits as follows: K05-123 Then the below code adds a "-" followed by 3 digits starting with 001 until it reaches the qty entered by the user. I actual need the user to input the serial# as following (example): K05-123- 020 or in other words they need to enter the starting serial number. From then on I need the code to assign a sequenctial number from that point until it reach's the qty input. Example if they input

3/10/2010 5:28:02 AM 2 "mattc66 via AccessMonster.com" <u16...@uwe>
Issue creating sql authentication odbc system dsn

Can anyone spot what's wrong with the code below which attempts to create a system dsn using sql server authentication? The login id and password are good for sure so is the db name and server name. Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long public CreateDSN() dim lngResult as long ' skip stuff lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL N

3/10/2010 3:01:37 AM 1 mat <...@notarealdotcom.adr>
Adding to Table from Drop Down Box

Hello.... In a victim services database, there is a field for the name of an attending police officer. To keep the name format consistent, the drop down box is populated by a table using an SQL statement in the rowsource property. What I want to do is for the user to be able to add another name using the drop down box directly. I have set *limit to list* to NO, and it will modify the record, but it does not add the new name to the table itself. How might I do this. Perhaps some VB code in the afterupdate event? Thanks -- Regards, Richard Harison

3/9/2010 9:34:45 PM 3 "LightByrd" <...@noway.invalid.com>
Tab Form Coding

I have created bound form (Tab page) and set ‘Data Entry Property’ to Yes to enter the data. So the form will open showing blank record. As I don’t want to show all the records when one opens the form. But if someone wants to search/view/update the previously entered record, How should I code the form? Thanks,

3/9/2010 7:53:02 PM 3 =?Utf-8?B?a2F5?= <...@discussions.microsoft.com>
Email subform contents from main form

I have visual basic code written in the after update event of a field on the main form. The form has a subform that has 0-10 records & 3 different visible fields. I have the code below written to send an email, which runs successfully. In addition to the current text I would like to be able to include the entire contents of the subform associated with the record in the body of the email. Is this possible to do, or if it is not, would it be possible to include it as an attachment? Thanks! DoCmd.SendObject , , , recep, , , "Parts Shippment", stemailtext & stwn & stemailtext

3/9/2010 7:46:01 PM 12 =?Utf-8?B?dG9ieTEzMQ==?= <toby...@discussions.microsoft.com>
No crrent record with empty subform

I have a form with a subform in continuous view, sometimes the subform has records to display, sometimes not. There are command buttons in the header of the subform, because I want to be able to do certain things even when there are no records. If I had them in the body, they would not be visible when there were no records. When I click any of the buttons, I get a pop-up saying "No current record". I click OK and the dialog goes away, and the code under the button runs normally. There is no code associated with the Current event, no events at all associated with the form, bo

3/9/2010 6:58:38 PM 5 "Petr Danes" <skruspamm...@no.spam>
Conditional Selections based on a Field

I'm trying to create a field that populates a choice of selections based on what was selected in a prior field. For examples sake: categories and sub-categories. I'm having trouble with coding the form to say "based on your selection in the category field, your options in the sub-category field are..." How would I go about this? Thanks!

3/9/2010 4:38:01 PM 3 =?Utf-8?B?VGhlRHJlc2NoZXI=?= <TheDresc...@discussions.microsoft.com>
Problem displaying a form that runs queries

Hello, In Access 2007, I’m having a little issue displaying a form that runs queries on load. Below is my code. When I double click the form, the queries begin to run but the form only appears after the queries are done. If I put the code behind a command button it works fine. I can’t use a command button because I need the queries to run unattended when the DB opens. Where am I going wrong? Private Sub Form_Open(Cancel As Integer) DoCmd.MoveSize 2880, 4320 End Sub Private Sub Form_Load() DoCmd.SetWarnings False '********************************** 'QUERIES MUST BE

3/9/2010 4:36:01 PM 4 =?Utf-8?B?aDJmY2VsbA==?= <h2fc...@discussions.microsoft.com>
Help with syntax.

I cant remember the syntax is the data is a number. Below is if the data is text. I wish this site kept my older posts I know I have asked this before. stLink = "[OrderNum]=" & "'" & Me![OrderNum] & "'" -- Matt Campbell mattc (at) saunatec [dot] com Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

3/9/2010 4:20:35 PM 3 "mattc66 via AccessMonster.com" <u16...@uwe>
I need help with opening a help file

I have a form that when I open it will display the help file. Every time I try this I get the Open, Save, or Cancel commands. This is the code I'm trying to use. Me.WebBrowser0.Navigate "e:\nci database\nci taps\working taps\taps 03-03\ taps-help.chm" I don't care if it opens in a browser or not I just want it to display the help file and its content. I know I can set the Help File and Help Context Id for the individual screens. This is the main help file I'm trying to display. Thanks for your help. -- Message posted via http://www.accessmonster.com

3/9/2010 2:34:18 PM 10 "Afrosheen via AccessMonster.com" <u46...@uwe>
WHERE Condition with NULL

I've written some code that looks something like this: Dim var As Variant var = DLookup("CustomerID", "Customers", "FirstName=""" & sFirstName & """ AND " "LastName=""" & sLastName & """ This seems to work just fine. However, since sFirstName and sLastName are strings, they will be "" instead of NULL. Therefore, this code fails if Customers.FirstName or Customers.LastName is NULL. The only solution I can think of here is rather involved. Does anyone know a more slick way to have this work for NULL values when my comparison strings are ""? Thanks. Jon

3/9/2010 5:05:26 AM 13 "Jonathan Wood" <jw...@softcircuits.com>
Help with Update Query

How do I setup my code so that the following query will fire only on the items on form match the order number? UPDATE tblItemSerShipLog INNER JOIN tblLocationDataC2 ON (tblItemSerShipLog. SerialNum = tblLocationDataC2.SerialNum) AND (tblItemSerShipLog.Item = tblLocationDataC2.Item) SET tblLocationDataC2.OrderNum = [tblItemSerShipLog]. [OrderNum], tblItemSerShipLog.CustNum = [tblItemSerShipLog].[CustNum], tblLocationDataC2.Shipped = Yes, tblLocationDataC2.DateShipped = [tblItemSerShipLog].[TransDate]; -- Matt Campbell mattc (at) saunatec [dot] com Message posted via http://www

3/9/2010 4:15:40 AM 7 "mattc66 via AccessMonster.com" <u16...@uwe>
Returning variables from external form

Hi, This is the second time I've asked this questions I this forum. I understood the answer I received and have implemented it, but I see some issues with it. The question is how do I return varirables from external forms? For example, I have a form that is called by a report. This form gets the report parameters and returns the variables to the report using a global variable. The global variables are set to null in the report, the form sets the values for the global variables, and the report uses the variables. When I asked the question, what is the "Access" way to re

3/9/2010 3:25:01 AM 9 =?Utf-8?B?RGVubmlz?= <Den...@discussions.microsoft.com>
UPDATE Table with multiple textboxes

I have three unbound textboxes on a form. Each textbox is used to input the amount of money A,B,C deposited. textbox1 is labeled A, textbox2 labeled B,.... When the user clicks a button, I need to update the table to add a row for A then add a new row for B and then C. Below is the code I have so far for the update, but I can't figure out how to repeat the update for B & C. Lastly, the table has a field named 'memo'. I would like to add the textbox caption to that field on each record. So, for the first record, the deposit field would be whatever number is in the Te

3/8/2010 10:34:01 PM 6 =?Utf-8?B?Z2F0b3I=?= <ga...@discussions.microsoft.com>
Alternative for MS Excel VLOOKUP function in MS Access 2003 Form..

I am converting several MS Excel spreadsheets into a single MS Access 2003 database for a User. The User’s original MS Excel VLOOKUP query is coded as follows: =IF(VLOOKUP(EG2,EH:EI,2,FALSE)=B2,"Good",VLOOKUP(EG2,EH:EI,2,FALSE)) New MS Access Table Name: 0301_ElectricitySupply_FeatureLine-up Field names for MS Excel and MS Access are as follows: MS Excel Cell: MS Access Field: A2 Verify Config “A2” is VLOOKUP function listed above. MS Excel Cell: MS Access Field: B2 Config No Example: B2 / Config No: MTU0301-0010 Note: This number is a

3/8/2010 9:35:01 PM 0 =?Utf-8?B?Q0JlbmRlcg==?= <CBen...@discussions.microsoft.com>
Sequential Numbering

I need to create a form that will create records based on the following details. The user will tell me the quantity of serial numers they need. I get the first part of the serial number and then it's a 3 digit sequential number to the total needed. Example: K05-272-xxx The xxx is the sequence number starting with 001 to the number needed. How would I do the code to create the sequence number. Matt -- Matt Campbell mattc (at) saunatec [dot] com Message posted via http://www.accessmonster.com

3/8/2010 8:55:07 PM 5 "mattc66 via AccessMonster.com" <u16...@uwe>
Filtering a Form

I have a form called "frmBFEaction" writing to a table called "Entries", I would like to filter the form to only show the records where field "status" equals "Open". Could someone please let me know if there is a way to do this and if so, how? Thanks in advance for any help! Aaron

3/8/2010 8:29:01 PM 3 =?Utf-8?B?QWFyb24=?= <Aa...@discussions.microsoft.com>
Change paths to linked external data

Hello. I have a database that has 3 external links in it: 1 is to a table in another Access Database. One is to an excel spread sheet. And, the third is to a .csv file. Is there a way in VBA to change the paths to these? Basically, i want to set up a form where the user can specify the new paths in text boxes if any of these files are moved. Anybody help me out? (Access 2007)

3/8/2010 7:51:01 PM 3 =?Utf-8?B?Y3liM3J3b2xm?= <cyb3rw...@discussions.microsoft.com>
Query Form

I have exported some data from the local MLS system into an Access database and want to run some statistics on the sales information, using a number of different queries which will feed graphs in Excel, etc... I have a form set up for choosing the data which include the city, the development, what kind of property it is (condo, single family residence, etc.) The problem I have is why no selection is made. For example, the query looks for a city selection from a drop-down box; if I choose a city, the query runs perfectly. If I do not choose a city - leaving it blank - the

3/8/2010 6:20:01 PM 1 =?Utf-8?B?ZGF2ZV9i?= <da...@discussions.microsoft.com>
Missing Operator

I am using Access 2002. I have a listbox with two columns that allows me to choose one or more items, then generates a report for those I've chosen. I am receiving an error on some of them. It is: Syntax error (missing operator) in query expression '([txtCourseTitle] = 'Career Edge Director's Program' And [txtVendorName] = 'Career Edge Right Management')'. I thought it was the apostrophe but I have others with apostrophes and they work fine. I have some with double quotes and those are good too so I'm kind of at a loss for what the problem is. Can anyone help me out? Th

3/8/2010 5:56:01 PM 5 =?Utf-8?B?QW5u?= <...@discussions.microsoft.com>
SELECT FROM Query name

I am using a SELECT statement as a rowsource on a form listbox. I have a query named 01-Accounts Query and the SELECT stmt reads as follows... SELECT 01-Accounts_Query.Name, 01-Accounts_Query.Date FROM 01-Accounts_Query I get a syntax error in query message. How do I fix this?

3/8/2010 4:33:01 PM 1 =?Utf-8?B?Z2F0b3I=?= <ga...@discussions.microsoft.com>
Replicate MS Excel VLOOKUP Function in MS Access

I am converting several MS Excel spreadsheets into a single MS Access 2003 database for an MS Excel User. The MS Excel VLOOKUP query I am trying to recreate is as follows: =IF(VLOOKUP(EG2,EH:EI,2,FALSE)=B2,"Good",VLOOKUP(EG2,EH:EI,2,FALSE)) New MS Access Table Name: 0301_ElectricitySupply_FeatureLine-up Field names for MS Excel and MS Access are as follows: MS Excel field: MS Access Field: A2 Verify Config "A2" is VLOOKUP function listed above MS Excel field:

3/8/2010 2:57:01 PM 0 =?Utf-8?B?Q0JlbmRlcg==?= <CBen...@discussions.microsoft.com>
could not update;currenty locked

I have a multi user environment where users are assigned to particular records. I have created a form based on SQL to get the data from the table and only provide them the records they are assigned to . .. They continue to get the error could not update; currently locked error. I have No Locks set on the database and form. Currently I have it in a one database environment but going to change it to an FE / BE environment. Is there anything else that will eliminate this error from ocurring. Thanks for any information you can provide.

3/8/2010 2:39:01 PM 1 =?Utf-8?B?TGlzYQ==?= <L...@discussions.microsoft.com>
Detecting a Character

I'm looking for a simple way to check that the text entered into a text box contains a slash at the end. I'm assuming VBA that executes On_Exit. -- Peter Marshall Manager Information Services Ohio Coatings Company

3/8/2010 1:30:18 PM 5 "Peter Marshall" <peter.marsh...@ohiocoatingscompany.com>
Totals in main form

Hey Freinds!! i have form called Workshops based on Workshops Table and subform called Participants based on Participants Table.the relationship between the two tables is one to many. how to count number of males and females in each workshop and show them in the main form. thanks in advance -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

3/8/2010 7:42:20 AM 1 "alawagi71 via AccessMonster.com" <u58...@uwe>
Add New Record / Make Existing Records Read Only

I would like open a form to add a new record and let the user browse existing records without being able to modify them. How can I accomplish this? Thanks

3/8/2010 2:37:02 AM 2 =?Utf-8?B?Um9u?= <...@discussions.microsoft.com>
Geting travel distance from a map - add-in

Hello, I have a user who goes into the Internet using Bing map or Google map to get sales person driving miles from point A to point B. My user inputs in separate fileds the From/To Address, City, State, Zip Code. The mileages is all calculated in a report. We are using Access 2003. The problem is there are many salespersons and each individual sales person travels to many different places. This is very time comsuming to go in the Internet and get the mileage. What I like to is have the user input into various fields in a table the FROM - The address, City, State, Zip an

3/7/2010 7:43:41 PM 5 "CAM" <alex_marti...@ca.rr.com>
Searching Record

Hi, I just want to know something about record searching on lost event of combo box. I have a relationship database in which my first table contain staff ID & Staff Name then in another table contains different parameters along with Staff ID & Staff Name my primary key is Staff ID what i want is this once a staff select his ID in combo box on lost event of it below is the text box which should be populated with staff name. I am using Access 2007. please revert asap. -- Thanks & Regards Majid Pervaiz Operations Analyst Al Hilal Bank, Abu Dhabi, UAE Message posted via Acc

3/7/2010 5:02:30 PM 14 "sys_analyst47 via AccessMonster.com" <u58...@uwe>
Opening Another Access Database onClick

I would like to open another Access database without closing the current database. I wish to do this with a button on a form. Please help.

3/7/2010 11:01:01 AM 8 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Detail in form goes blank

Thanks for reading this. I have a sub form that I use for a search box and when I type in a dummy name to check if the search is correct, the detail section blanks out. Of course, when I type in the correct name it is ok. I'm just wondering how I can keep the screen in the detail section on. I do have: Allow Additions - Yes Data Entry - No I know if I change the Data Entry to Yes then the detail will stay on. The problem with that is when I press next, it will go to the next record. If it's on the last record then it will show blank record and I have to press the Next button twi

3/7/2010 2:21:05 AM 5 "Afrosheen via AccessMonster.com" <u46...@uwe>
Unbound Form or Holding Table for Payment Section

I am making a section in a program that requires input of payment information. I have already set up a payments table. I want the user to input the payment information for one payment, click a button and have the information be transferred to the payments table. Is it better to: 1. set up an ubound form for the information and move the information to the payments table after the button is clicked? 2. have a table to hold the payment information temporarily until the the user clicks on the button and move the information from the holding table to the payments table at that time?

3/7/2010 1:47:58 AM 1 Jonas <sun...@yahoo.com>
VBA Code Written Once For All My Forms

I have a couple procedures that I use for dozens of forms in teh same database. The code for this prodecure is identical. It's not in every form, but many. Can I reference such a procedure from any form I want, but write the procedure once?

3/7/2010 1:21:01 AM 1 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Preparing a Access Database for a Website

Preparing a database for the Internet website: Whether it's php, asp, or PERL or any other odbc language, the database should be prepared, right? I mean encryption, etc. Is the database editable while it is encrypted?

3/7/2010 1:16:01 AM 0 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Concatenation

Hi all, I have to tables and two form, Tbl A = Form A, Tbl B = From B. Form B is a subform to Form A. On the “Load event” of Form B i want field “Bananas” to become populated with data from fields “Fruits”,”Basket”,”Colour” in Form A Me![Bananas] = Forms![A].[Fruits]&””&[Basket] etc.. does not function.. One way to “almost” solve this would be to build Form B on a query were I Concatenate the fields..but I want form B to create a new record on load (Data Entry = Yes) and the way I see it..it cannot create a new record based on this query... Thankful for assistance!

3/6/2010 11:04:01 PM 2 =?Utf-8?B?UGV0ZXI=?= <Pe...@discussions.microsoft.com>
Step Through Code if Private Sub

My code is like this: Private Sub CallQuery_Click() ....'lotsa stuff End Sub I had a heck of a time debugging something today because I couldn't step through the code like module-code. Finally got it! I could probably debug it much quicker if I could have stepped through the code. Is there a way to do this in a Private Sub like the above? Thanks! Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''.

3/6/2010 9:26:07 PM 6 =?Utf-8?B?cnlndXk3Mjcy?= <ryguy7...@discussions.microsoft.com>
incorrect null value in combobox

Hello I have a combo with 2 columns. Everything is set up corectly (bound column, no of columns etc). Rowsource is a query which has 2 columns as well. All goes fine but from time to time, i don't know for what reason, I get the result me.combo.colum(0) or (1) = Null even though I should have not null values (the bound query returns not null values, I have checked) It is intriguing that this does not happen every time and also if I check the value of my combo with me.combo than it returns the correct result not null. Can I get the value of my second column other than me.

3/6/2010 4:04:09 PM 8 =?Utf-8?B?Q2F0YWxpbg==?= <Cata...@discussions.microsoft.com>
Code not giving the correct results

Hi The following code runs but sometimes displaying the label when it shouldn’t. If the Me.Fault result isn’t YES I sometimes get the label displaying. I also get the same sometimes with the Me.Recoverable. If the result is recoverable instead of not recoverable it sometimes displays the label. How can I improve this code so that I get accurate results? Thanks Bob Private Sub Form_Current() If Me.Fault = "YES" And Me.Recoverable = "NOT RECOVERABLE" And Not IsNull(Me.NameOfOtherParty) And Me.InsuranceCompany = "BR" Or Me.InsuranceCompany = "Br Insurance Company Ltd"

3/6/2010 3:41:01 PM 5 =?Utf-8?B?Qm9iMDc3OTA=?= <Bob07...@discussions.microsoft.com>
Quick check with a second form

In my form Form1 i want to open a second form , Form2, but showing only the row where the focus is for example the field Productcode from the first form to show the same field Productcode from the second form.How to do it automatically when changing the focus in the first form? -- Message posted via http://www.accessmonster.com

3/6/2010 12:19:44 PM 6 "samotek via AccessMonster.com" <u15...@uwe>
Increase size on continuous forms to fit widescreen

Hello, I have an access 2003 app with continuous forms / and sub forms that was developed on a 800 x 600 screen. I now have a wide sceen with a resolution of 1280 x 1024. When the app loads, the fonts and controls are too small. I googled this topic and came across ADHResize module that I could add to the project along with some code to be put in the open event of each form. Private Sub Form_Open() Set frmResize = ADHResize2K.CreateFormResize() Set frmResize.Form = Me End Sub When I run my app, there is no change to the forms as they still stay small. Any suggestions o

3/6/2010 11:49:04 AM 1 "rashar" <u9...@uwe>
subforms

Hello everyone, I have two subform in my mainform, frmOrder and frmPayments with record source of a select query. I have this field in my tblOrder CustomerName Date RefNo Amount Primary Key RefNo I have this field in my tblOrder CustrName DatePaid RefNoPaid Amount Primary Key RefNoPaid that is how I build my tables and query them. I am planning that when in my frmOrders will automatically set the checkbox field set to YES when the payment from frmPayments subform equals to the amount from frmOrders? is it possible? Hopefully this is clear.. Thank you in advanc

3/6/2010 11:20:01 AM 0 =?Utf-8?B?UmV2bmVk?= <Rev...@discussions.microsoft.com>
Can I still use check boxes?

Hello I have spent weeks trying to use Check boxes on my form in Access 2003. I received samples of code from this forum, but unfortunately I'm still a beginner in vba. My head aches but I hope this time I'll be lucky and I can use correctly you help. In http://allenbrowne.com/NoYesNo.html web site. 'The interface does not offer Check Box as an option, but you can set the property programmatically like this: CurrentDb.TableDefs("Table1").Fields("Field1").Properties("DisplayControl") = CInt(acCheckBox)'.' Where in my table I can write this code? In my db MyTable has

3/6/2010 2:42:53 AM 8 =?Utf-8?B?c2ViYXN0aWNv?= <sebast...@discussions.microsoft.com>
How can I allow hyphen (or dash) in this validation rule?

In the form, users may enter alphanumerical data. The only special characters I want to allow are periods (.) and hyphens (-). How can I modify this validation rule to allow a hyphen? Rule is: Is Null Or Not Like "*[!((a-z) or (0-9) or (.))]*"

3/5/2010 10:07:52 PM 1 =?Utf-8?B?bWxldg==?= <m...@discussions.microsoft.com>
Basic INSERT question

I have a form with three fields - textbox1, textbox2, textbox3. Each textbox will have text or a number in it. what code will INSERT textbox1 into new record in Table1 field1, then INSERT textbox2 into new record Table1 field1, and so on? Is it a Loop or Array, I'm confused.

3/5/2010 8:26:17 PM 1 =?Utf-8?B?Z2F0b3I=?= <ga...@discussions.microsoft.com>
VBA sort code DESCENDING

I am using VBA code behind a form, to sort as follows: Private Sub ob_org_Click() Me.OrderBy = "org" Me.OrderByOn = True End Sub where org is the fieldname in the table. It works great. No problem. I need to click either the same button or another button to sort the other way (DESC).

3/5/2010 8:20:01 PM 4 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Pagination on a Continuous Form

I would like to have one continuous form hold a list of 30 records per page, and be able to see the page numbers (and use them) at the top and/or bottom of the form, such that a total of a couple hundred records (or more) can be displayed in groups of 30 at the request of clicking the page number (similar to that of a webpage, but only an MS Access Form).

3/5/2010 7:23:01 PM 2 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Parent.RecordSource in a popup

On another post (below), I read that a textbox can be created to access the record source of the form on which it resides. Can I create a popup form (lets call it SQL POPUP) (which will activate from clicking a button on the form having the button MAINFORM) in which SQL POPUP has a textbox containing the recordsource of the MAINFORM? 1/17/2010 12:25 PM PST Author: Presto ---snippet--- Title of Post: Show record source in a text box I need to weed out a very overcrowded database. I need to remove ... ---end snippet--- Marshall Barton wrote: Me is not valid in a contro

3/5/2010 6:50:01 PM 4 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Access user

I have a secured database created with Access 2003, and used by Office 2007 users. I need to grant privileges to a query; that for reasons of design, is deleted and recreated based on user input. It seems that deleting the query removes the privileges with it. Obviously their may be other ways of doing this, but I am locked in. I am looking to grant privileges to a query, lets call it, "my_deleted_and_replaced_query" using VBA code in a module, and need help with the syntax. It should go something like this: Grant privileges to my_deleted_and_replaced_query for all users or group

3/5/2010 6:18:35 PM 1 Lincoln <crosl...@gmail.com>
How Can You Force a Particular Popup Form Height and Width?

I am looking to force each popup form to the dimensions of height and width that I want. I tried setting the Border Style Property to Sizeable and Auto Resize to No, however when I go from Design View to Form View for the Popup Form, I have to resize the form each time; when I set the Border Style to "Thin" I cannot change the dimensions.

3/5/2010 6:07:01 PM 4 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Make checkboxes invisibile based on combo box selection

I'm working with Access 2007. I have a combo box on my form with three items to choose from in the drop down. I then have two check boxes that I want to be visibile only if the user selects the 2nd or 3rd item in the drop down. If they choose the first item in the drop down, I want the check boxes to disappear. I put my IF Statement in the combo box's AfterUpdate event. It works except that the checkboxes are either visibile or not visible in ALL of the records. How do I keep the checkboxes visible or invisible for each record? Not sure what I'm doing wrong. Below is my cod

3/5/2010 6:02:01 PM 3 =?Utf-8?B?VGluYVI=?= <Ti...@discussions.microsoft.com>
FormErr 2473 0* expression On Open you entered

I am getting these 2 errors messages and I have not been successful in finding any information that will tell me what is causing the problem. I have installed an application which was written for MS ACCESS run-time and VB and it is giving this error message. Can you tell me where to look as the messages does not help.

3/5/2010 5:35:02 PM 0 =?Utf-8?B?Z29sZml0MDA3?= <golfit...@discussions.microsoft.com>
Why Bookmark and RecordsetClone to return to record?

Hi all, I'm working on a form that will need to be requeried after a number of different on click events. At this point I want to return to the record that was current before. According to my various resources, including here, I should note the primary key, requery, clone the recordset, find the primary key in the clone, set that record as the bookmark and then set the cloned bookmark as the forms bookmark. Why is this better than just noting the primary key, requerying and finding the primary key on the form's recordset? I feel like I'm missing something here... Thanks f

3/5/2010 5:20:09 PM 4 =?Utf-8?B?Q2xhaXJl?= <Cla...@discussions.microsoft.com>
Table Locking Problems

Greetings, I use the following code to create a relationship between table A and table B: Set rel = db.CreateRelation("A_B") rel.Table = "A" rel.ForeignTable = "B" Set fld = rel.CreateField("AID") fld.ForeignName = "BID" rel.Fields.Append fld db.Relations.Append rel This code works as expected, but a few lines later I call DLookup() on table 'B' and I get the following error: "Run-time error '3008': The table 'B' is already opened exclusively by another user, or it is already open through the user interface and cannot be manipulated programmatically." If I comment

3/5/2010 5:05:15 PM 0 "Jonathan Wood" <jw...@softcircuits.com>
Customizing a Popup Form as a Message Box

How does a person create a message box which is a popup form instead of the standard boring gray rectangle?

3/5/2010 5:05:01 PM 5 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
Display Table Name

Hi, Is there any way to code a text box to display the name of the table that I'm using for my query? I don't want to hard code it, since I have other code that changes the RecordSet property. Is there a way to have it dynamically become the name of the table that one of the fields is coming from? Thanks, John Schping

3/5/2010 4:48:01 PM 2 =?Utf-8?B?anNjaHBpbmc=?= <jschp...@discussions.microsoft.com>
Using VBA to automatically add a new date to my table?

I would like to have my table (perhaps through a form) automatically add a new record with the date, every 24 hours, starting at midnight, 24/7/365 How do I do that? Also, And how do I search my username VWP1, because I tried searching users, typed in my VWP1 username, and no records were found? VWP1

3/5/2010 4:23:02 PM 1 =?Utf-8?B?VldQMQ==?= <V...@discussions.microsoft.com>
SQL Statement

Hi Guys, I have this sql statement, it works but I want to display a message if the record is not found and continue if record is found, my question is how can I capture these events, I will really appreciate any help Thanks Set rs = db.OpenRecordset( _ "select JobName, DocketGenInfo " & _ "from tblMDocket " & _ "where DocketNumber = " & Me.ComboDocketRef)

3/5/2010 4:09:01 PM 4 =?Utf-8?B?TWFyYWNheQ==?= <Mara...@discussions.microsoft.com>
Using one button to open two different forms

I think you mean I should key some code in the OnClick event of the check box but i am very unfamiliar with code writing. Could you help me out as far as what I would need to enter to make the record I click on be the active record for determining what report to open? Thank you in advance. "Arvin Meyer [MVP]" wrote: > Why don't you use a click event for the record that you are selecting? > -- > Arvin Meyer, MCP, MVP > http://www.datastrat.com > http://www.mvps.org/access > http://www.accessmvp.com > > > "AccessIM" <AccessIM@discussions.microsoft.com> wrote in message

3/5/2010 3:44:04 PM 0 =?Utf-8?B?QWNjZXNzSU0=?= <Acces...@discussions.microsoft.com>
asigning a help topic to a cmd button

Good morning, I have a help menu [taps-help.chm] and it appears to work when I press {F1}. I set up the control Help File and left the Help context Id blank {0}. I went to the button {cmdHelp} and put the Help Context Id to number {30} which is a page number. When I pressed the button, nothing happens. When I pressed the {F1} key then it came up. What I'd like it to do is to (I guess) is when I press the button to have it emulate the {F1} button. Can this be done or is there another way? Thanks for your help and reply. -- Message posted via http://www.accessmonster.com

3/5/2010 2:26:32 PM 0 "Afrosheen via AccessMonster.com" <u46...@uwe>
Date picker not updating text box in A2007

I have a simple date input form and am trying to use the date picker with an unbound text box. When I click on the required date it appears in the text box but does not fire the update event (or any other). I need it to transfer the chosen date to a TempVar, but no luck. The same happens whatever version of date picker I use - I have tried in built in one and almost everybody else's. Would appreciate guidance. Richard

3/5/2010 11:39:01 AM 0 =?Utf-8?B?UmljaGFyZEdhcmZpZWxk?= <RichardGarfi...@discussions.microsoft.com>
DAO and Table Locking

Greetings, I've written some code to create a relationship between table A and table B. The code looks something like this: Set rel = db.CreateRelation("A_B") rel.Table = "A" rel.ForeignTable = "B" Set fld = rel.CreateField("AID") fld.ForeignName = "BID" rel.Fields.Append fld db.Relations.Append rel This code works just fine except that a few lines later, I use DLookup() to find a row in table B, but I then get an error that table B is exclusively locked and cannot be accessed. Can anyone clarify why table B has been locked and how to unlock it? Thanks. Jon

3/5/2010 6:54:17 AM 6 "Jonathan Wood" <jw...@softcircuits.com>
I am using VBA, how do you test for new record in a form

What should I test my VBA code so that I know the User is working with record as New in a Form. I am using Access 2007 under Windows XP. I used PrimaryID as an auto generated number, therefore it is Null in the begining that is how I know the user is trying to add a new record and not editing an existing one. So I test for IsNull(PrimaryID) which works if the user do not make mistake but as the user enter more information made mistakes and need to correct the PrimaryID is no longer Null. So my test passed as if the use is editing the existing record when in fact the user is

3/5/2010 6:01:01 AM 1 =?Utf-8?B?VW1hcg==?= <U...@discussions.microsoft.com>
Opening a new record form but allowing searches

I changed the "Data Entry to Yes" to have my forms open for new records, but it seems to have disabled my ability to move from record to record or allow for searches. Is there another way that I could have set it up so that it allows for both?

3/5/2010 1:54:06 AM 2 =?Utf-8?B?RmFsbG91dA==?= <Fall...@discussions.microsoft.com>
Using SQL Query Code in Form Module to Return Record Count

Hi Team, I am trying to call the following SQL Query from within the Code to return the count of records that meet a criteria where a field value in the Table would be equal to the Value of a Control that is within a Subform: Dim rst As Recordset Dim SQL As String SQL = "SELECT Count(Tbl_Risk_LocalProfiles_ResponsiblePersons.RiskResponsiblePersonRecordID) AS COUNTER " & _ "FROM Tbl_Risk_LocalProfiles_Subform INNER JOIN Tbl_Risk_LocalProfiles_ResponsiblePersons ON Tbl_Risk_LocalProfiles_Subform.ProfileUpdate_ID = Tbl_Risk_LocalProfiles_ResponsiblePersons.ProfileUpdat

3/5/2010 1:23:01 AM 2 =?Utf-8?B?WmlrYXI=?= <Zi...@discussions.microsoft.com>
Multi fields search form

I have a form with multiple combo boxes. I need to find all records that maches the seleted criteria (Combo boxes). The criteria runs from multiple tables. My problem is that I cannot get it to work, so It will return only exact matches since the user will not always select all fields. Sometimes they will select only two fields, and it causes a problem with nulls values from the form. SELECT Tbl_Employee.Employee_Name, Tbl_Employee.Department, TblEmp_Domain_Knowledge.[Domain Knowledge], TblEmp_System_Knowledge.Emp_System_Knowledge, TblTaskForce.TForce_Name FROM ((Tbl_Employe

3/4/2010 10:01:03 PM 1 =?Utf-8?B?TXJvZHJ6?= <Mro...@discussions.microsoft.com>
help with allen brownes Lock bound controls

I am using allen browns lock bound controls code. I have used it elsewhere in my database just fine however i would like to use it on a unbound search form the button ctlLock is on my main unbound form and i want it to toggle and lock my results subform here is the line i am having issues with i think it is because i am trying to reference the subform incorrectly.. Call LockBoundControls(Me.F_Parts_Browse_All, bLock) i get a runtime error 13 Type mismatch on the above line I f i leave the ME as supplied by allen Call LockBoundControls(Me, bLock) i get a error 2455 for inv

3/4/2010 8:45:01 PM 4 =?Utf-8?B?QmFycnkgQSZQ?= <Barr...@discussions.microsoft.com>
change query criteria dynamically with value from a 2nd form

Hello, I have a query with multiple criteria passed from a form named "main". I want to pass the criteria to the same query from a different form from the click event of a hyperlink field returned from a different query. How do i pass / change the current query criteria from its current value to the value coming from the second form dynamically. My code in the query design looks like From Form main (To the same field in the query design) Nz([Forms]![Main]![txt_fin_nbr],"00000") When the criteria is not coming from form Main, i want it to be Nz([Forms]![frm_display_mul

3/4/2010 8:27:01 PM 1 =?Utf-8?B?ZWN3aGl0ZQ==?= <ecwh...@discussions.microsoft.com>
Object dependencies in Access 2007

How can I get all the objects like tables, queries, macro dependendent on my form. I developed a form which has lot of sources and would like to export all these dependencies to another database. -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

3/4/2010 7:31:37 PM 0 "mls via AccessMonster.com" <u55...@uwe>
SQL statement not working

I have a login form that will login who is using the database and the date. It has the following code connected to the onClick event of an OK button: Dim rosterSQL As String Set rosterSQL = "Insert into tblLOGIN([rosterID], [loginDate]) Values ('" & Me.rosterID & "', Now() );" DoCmd.SetWarnings (0) DoCmd.RunSQL rosterSQL please note the tick marks vs. quotes around rosterID: ' " & Me.RosterID & " ' The form has rosterID as a field. But when I run the code I get a "Compile error Object required" and the following is highlighted in the code: . RosterID Any idea what my

3/4/2010 6:42:46 PM 5 "RedHeadedMonster via AccessMonster.com" <u36...@uwe>
Which event?

Hi, I have a tab control on my main form, and each tab has a separate subform inside it. Each of those subforms contains a its own subforms. I have a combo box in the main form that selects a record. All of the subforms are set to filter based on that choice. Each subform has some formatting code that needs to run each time the user changes the selection from the combo box. I only want it to run once to reformat the subform based on its new filter. Which event should I use to place the code? I am currently using the On Current event for the subforms. But I think it runs

3/4/2010 4:21:01 PM 5 =?Utf-8?B?anNjaHBpbmc=?= <jschp...@discussions.microsoft.com>
Hyperlinks to pdfs and word documents are not working

My Access database was recently upgraded to Access 2007. Now all of the hyperlinks I have to pdfs and word documents are not working. In browsing "external data" I see that I can link to text files and excel files, etc. Please explain why my links to pdfs and word documents no longer are working and how I can fix them. -- Archivist

3/4/2010 4:09:02 PM 1 =?Utf-8?B?QXJjaGl2aXN0?= <Archiv...@discussions.microsoft.com>
Select statement

Hi Guys, This sql statement is not working, I think is because sales rep id is text field, I really appreciate if someone can help me Thanks Set rsSR = db.OpenRecordset( _ "select SaleRepName, SaleRepID " & _ "from tblMSaleRep " & _ "where SaleRepID = " & Me.TextSalesRepID)

3/4/2010 2:52:01 PM 1 =?Utf-8?B?TWFyYWNheQ==?= <Mara...@discussions.microsoft.com>
Date Picker issue

Greets to the intelligent among us...... Hi All, I have an anomaly happening with the (date picker??) I load a form to edit a record in History table using among other code, the lines Me.txtFromDate = Me.cboHistEditLookup.Column(4) Me.txtToDate = Me.cboHistEditLookup.Column(5) Then "On Click" to run my update SQL I first do the following check If Me.txtFromDate.Value > Me.txtToDate.Value Then MsgBox " The Ending Date Cannot be Before the Starting Date " Me.txtToDate.SetFocus Exit Sub End If However If when the form opens I click on the txtFromdate & use the date pi

3/4/2010 2:01:01 PM 1 =?Utf-8?B?SHVnaCBzZWxmIHRhdWdodA==?= <Hughselftau...@discussions.microsoft.com>
Enable control/field if in Add New Record page/form

I have a field that I disable in the Edit mode of a form but I would like to Enable the same field/control when the same form is in the 'Add new Record' mode. Can you tell me the code and event to use.

3/4/2010 1:45:02 PM 1 =?Utf-8?B?U3RldmUgU3RhZA==?= <SteveS...@discussions.microsoft.com>
Wrong data is presented after query

The data base consists of 2 key reference tables Scanner Models and Scanner Parts. As this is a many-to-many relationaship and there is a linking table ModelPart. A third reference table holds Scanner Makes which has a many-to-one relationship with the Scanner Models tables. When work is carried out on customers Scanner a Service Report is input. The Service Report consists of a main form (recording dates, work done etc) and a subform (to enter details of parts used). The JobNo (Service Report number) is the Master Link Field and Child Link Field On entereing a service r

3/4/2010 8:46:35 AM 2 "Brian Fielding" <freyrs...@yahoo.co.uk>
Page-Index of a Tab-Control from a SubForm

I am writing a small golf management database application. I have a form (TournamentManagement) which has a 3 page tab-control (TournamentTabCtrl). The second page has a subform (Groups) which includes a tab-control (SubFormTabGroupCtrl) with 6 pages. I need to know the page-index of the main tab-Control (TournamentTabCtrl) from the first page of this tab control.. How can this be done? Thanks in advance -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/201003/1

3/4/2010 12:34:00 AM 3 "JoeProvenzale via AccessMonster.com" <u58...@uwe>
Right justified field displays left justified

Hi, I'm on Access via Office XP Pro. I have a continuous form. That form has a text box control that I load as the result of a choice in a combo box. The combo box has a drop down list of class number and dates. When the user chooses a class, I extract the number of availabe slot (and format the data) by : intNoOpen = Nz(Me.cboClassNo.Column(6), 0) If intNoOpen = 0 Then Me.txtOpenClosed.ForeColor = 185 ' Class closed - Bright Red Me.txtOpenClosed.FontBold = True Else Me.txtOpenClosed.ForeColor = 4227072 ' Class op

3/4/2010 12:32:02 AM 1 =?Utf-8?B?RGVubmlz?= <Den...@discussions.microsoft.com>
Timer Event

I'm trying to cause a "Command Buttom" to flash periodically using the folowing code. It doesn't seem to work. Do you see any problems with the code. (I found this code on this site) Thanks Private Sub Form_Timer() For j = 1 To 5 If Me.Command49.Caption = "Update" Then Me.Command49.Caption = "Update" Me.TimerInterval = 500 Else Me.Command49.Caption = "Update" Me.TimerInterval = 2500 End If Next j End Sub End Sub -- Message posted via http://www.accessmonster.com

3/3/2010 10:26:44 PM 5 "Haggr1 via AccessMonster.com" <u35...@uwe>
Ensure correct date sequence

I am keying in data into a results table and I need to setup a checking process during the data entry so that each new results record is dated is after, not before or equal to, the date in the previous records. Does anyone know how to set this up? In other words, I need Access to prevent both an earlier date or the same date already entered from any previous records. Many thanks.

3/3/2010 10:22:01 PM 1 =?Utf-8?B?ZmVsdG9u?= <fel...@discussions.microsoft.com>
using VBA to set a keyboard option setting

Is there a way I can get VBA (Access 2003) to set a keyboard option setting on the desktops of all users of an application? I would like to set the "Behavior entering field" setting in the Tools-Options-Keyboard (tab) dialog set to "Go to end of field", and I would like to do it using VBA. Is there a way to accomplish this? Thanks in advance, Paul

3/3/2010 10:20:21 PM 5 "Paul" <BegoneS...@forever.com>
Exit button

I have a form in an Access 2007 database, that has an Exit button with a hyperlink to an online file. What I'm trying to do is when you click the Exit button, the database closes and opens the online file. Everything works the way I want except for one small piece - When the database closes, I get an error message saying that Access was in the middle of doing something when I closed and asks if I want to restart Access. Even though the database closes and I get this error, the online file still opens the way it should. My question is - How do I avoid having the error pop up

3/3/2010 9:42:02 PM 0 =?Utf-8?B?SkQ=?= <...@discussions.microsoft.com>
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel8

Hello, I have vba that will import the data from Excel file. Is it possible to append the data from excel file to a table in Access in such a way that excel file does not have a field's name? When I run this transferspreadsheet command, it comes in as F1, F2,..... thanks,

3/3/2010 9:08:45 PM 2 "Boon" <boonyawat.la-ongth...@cnh.com>
oh...my...God...I'm having my day with this crap...

I have a textbox where user enters a PIN the sub pin value is tested in the BeforeUpdate event: Private Sub pin_BeforeUpdate(Cancel As Integer) If Not (pin.Text Like "*[A-Z]*[A-Z]*[A-Z]*" And pin.Text Like "*#*#*#*") And Not pin.Text = vbNullString Then msgtxt = "Il PIN digitato non rispetta il formato previsto." & vbCrLf & _ "Inserimento annullato." Call ShowMsg(red, msgtxt) msgtxt = vbNullString Cancel = -1 End If End Sub This will let me move on other controls if the value for the PIN is in the right format or if I DELET

3/3/2010 6:25:01 PM 2 =?Utf-8?B?cm9jY28=?= <ro...@discussions.microsoft.com>
Using For...Next with Controls

I have got 3 label controls on a form; each label control has it own name (list below) - lbl_div_nbr_1 - lbl_div_name_1 - lbl_div_charge_1 These set of 3 labels are then repeats 3 times on the same form, with the name being the only thing that changes e.g. - lbl_div_nbr_2 - lbl_div_name_2 - lbl_div_charge_2 - lbl_div_nbr_3 - lbl_div_name_3 - lbl_div_charge_3 I would like to use a For….next statement to look through and set the values on these labels and make them visible, rather than having to write out 9 separate statements to do this, but my code below isn’t

3/3/2010 5:46:03 PM 2 =?Utf-8?B?U3VnZ3kxOTgy?= <Suggy1...@discussions.microsoft.com>
Conditionally hide columns in Access 2003 Code

I have code which unhides the columns on a subform based on a selection made in the main form. It works fine, but now I need to do the same thing but include two columns. I need to hide both TargetAudience and ProductMarketed. Can I use "and" or do I have to reference the other control independently. I am not including all of the code but just what I need to change I think. Dim frm As Form Dim ctl As Control Dim ctlLbl As Control Dim ctlHld As Control Set ctl = Forms!frmPaymentEntryforDC![sbfEventsDC subform].Form![sbfDCEventDatails subform].Form!ProductMarketed

3/3/2010 5:37:02 PM 2 =?Utf-8?B?S2F5?= <...@discussions.microsoft.com>
Windows 7

Hi - I switched to a new computer that has Windows 7. My problem is that the buttons on my forms don't work any more. How do I turn them back on? Something has been disabled and I can't find where to turn it back on.

3/3/2010 4:53:01 PM 2 =?Utf-8?B?VGFtbXk=?= <Ta...@discussions.microsoft.com>
DLookup Issue

Hey all, I'm working on an access database and on the MainPage form I'm looking to populate data using DLookup. I'm trying to populate a text box with data from the Manager column of the EMP table where the Full Name field in the table matches the EmpName selection on the current form. So far I'm only getting either a blank field or the first field in the table for everyone. The code I'm using is: =DLookUp("[Manager]","[EMP]","[Full Name] = [EmpName] ") Any help or suggestions to get this to work would be greatly appreciated. Thanks!

3/3/2010 4:42:01 PM 9 =?Utf-8?B?VGhlRHJlc2NoZXI=?= <TheDresc...@discussions.microsoft.com>
ID Pickup

Ok so here's my idea, someone will no doubt say "Jus' put it in one table', if you're that someone save your fingers the effort of typing, I don't want to! Here we go! Ok, so when I make a new client the GP's ID is chosen via a subform of the GP table, so in the client table the only GP info' that is saved is the ID. (this is done using - Me.GP_Dentist_ID.Value = Me.GPList.Column(0)) In my client search I want it the other way around, so the ID will bring up the name, place of work and telephone number into three, currently, unbound boxes: GPName GPWork and GPTel. I

3/3/2010 2:59:02 PM 2 =?Utf-8?B?SXJ3aW4xMDk=?= <Irwin...@discussions.microsoft.com>
subform in subform

Hi, I've got a form F and subform S1 in it. And inside S1 I've got subform S2. How do I reference a text box in S2 from VB code? thanx alek_mil

3/3/2010 8:17:01 AM 2 =?Utf-8?B?YWxla20=?= <al...@discussions.microsoft.com>

Pages: 2 3 4 5 6 7 8 9 10 11 12 13











Newest Articles

change date format to excel format
7 min. 27 sec. ago

error
10 min. 1 sec. ago

Select specific worksheets & copy - code problem
10 min. 27 sec. ago

Debugging SharePoint workflow in production environment
12 min. 2 sec. ago

Terminal Server Licensing - Which server?
14 min. 1 sec. ago