I'm manipulating tables in Excel using Visual basic and as part of the code I would like to remove all text enclosed in parentheses from column headers - see below
From
To
Ive been attempting to use the example formula using VBA but cannot make it work =LEFT(D1,FIND(" (",D1)-1)
and...
Im trying to enumerate grouped records in a query. Please see table below.
The query is grouped and sorted by ID then depth. When I run the query I would like Depth_Enum to enumerate the depth values based on the grouping.
Any suggestion would be appreciated.
Thank You
I'm trying to figure out a query statement that would identify when 2 dates occur within consecutive quarters (but not the same quarter). I've been messing around with DatePart and DateAdd but not getting very far. Thanks for any help.
I have a station ID table connected to another data (species code) table via one to many relationship using the station ID. Users enter species codes for a station using a form. How can I prevent a user from entering duplicate species codes for a particular station ID. In other words its ok to...
I would like to use strWhere to search a boolean field. Can someone provide me with the proper syntax?
See similar code below.
Dim strWhere As String
strWhere = "1=1"
If Not IsNull(Me.chkPaid) Then
strWhere = strWhere & " AND [Paid] Like """ & Me.chkPaid & """ "
End If
Dim stDocName As String...
I have a query that returns the following with each row representing a different date in 2008:
Facility Year Jan Feb Mar Apr
Dare County 2008 Pass * * *
Dare County 2008 * * * Pass
Dare County 2008 * Pass * *
Dare County 2008 * * Fail *
Is it possible in the query to condense the rows like...
I have a query with a text field similar to the following:
Fail
<24
>24.6
Fail
>100
<45
>100
Fail
77
59.9
I am using the following code to extract numbers from the text but the decimals are removed. Problem is I would like to keep all decimals in the numbers.
Public Function getNum(myField)...
I am pulling data from a table via a query to be exported to excel. I have created a field in the table to display a date when the record was last exported. How do I date stamp the field to show when I queried/exported the record? Any help would be appreciated.
Thank You
Is it possible to place a date stamp for a modified record in a table without using a form? Some records are being changed by a user without a form and need to be stamped when edited directly.
Thanks
Hello:
I have a subform in datasheet view that displays some (but not all) data in a table. I would like to have the user browse the records in the subform and then click on the date field in the subform to have a continuous form open for editing all data for that record. Thanks for any help.
Is there a method to pass values in unbound controls on a form to a table? Because of the table structure and for other reasons having to do with the users I would like to have the form act as a template with unbound controls and then pass those control values to a table at a later time.
Thanks...
I have a form that I want serve as a count sheet for organisms. On the form I have text boxes that hold counts for various critters. I would like to place a button on the form that increases the count in the active text box by 1 for each click. (Initially the text box would be null) I have made...
I have a query with multiple fields containing weight data - Weight1, Weight2, Weight3, etc.. I would like to average the fields (not rows) and ignore fields with null values in the average calculation. I'm sure its obvious but I can't make it work in the query. Thanks for any help.....
I'm looking for a method to force the user to insert a negative sign in front of a number. I've tried various input masks but none seem to work and still allow a positive number to be entered. Thanks for any help.
I have a search form that i want to disable a command button on if any unbound text boxes contain text. I've tried various code with various events but none work. Thanks for any help.
I have a boolean field in a table that users check yes or no to filter unrelated records in a query. Is there a quick way with code or other to allow users to quickly clear out all checks in the field before starting a new filter? I suppose they could sort to bring all checks to the top and...
Hello:
I have limited experience with VBA. I have a form that displays data in datasheet view that I am trying to let the user filter with a multi select listbox. The form runs off a query. The user selects multiple records from the listbox, then clicks a button to open the form to show only...
I have created a user interface that display search results on a form in the datasheet view. I am trying to output this form to an excel workbook with multiple worksheets using
DoCmd.OutputTo acOutputForm, "frmBCTable", acFormatXLS, "S:\MikeW_DB\TransferXL.xls"
The form outputs fine but...
I have a form for entering and viewing records in a table. (the data entry property is set to "No"). If the user accidentally turns the mouse scroll wheel while the form is active, new blank records are added to the table. Is there a way to disable this? It has caused problems because some...
Hello:
I have a master form with several buttons that open child forms. The master form passes certain record info to the child forms provided the record has been saved. Problem is if a user forgets to save a record on the master form, they get an error message when attempting to save the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.