MS Access draw table on the report - vba

How is it possible to draw a table on MS Access Report without RecordSource?
I need very simple table with black borders, that should be flexible depending on the passed text
-----------------------------------
| Header1 | Header 2 | Notes |
-----------------------------------
| Text1 | Text 2 | Notes |
| | | text |
-----------------------------------
There is "Arrange" tab, which contains some table elements, but it's disable.
How to resolve that?
Thanks a lot

Put textbox control on the Report, then right mouse click on the control, choose Layout->Tabular, in that case you will have a table/grid flexible and Enabled "Arrange" tab. Also you can set up borders of the cells.

Related

How do I access a new cell created by Cell(i,j).Split in Powerpoint VBA

Assume I have a table in Powerpoint which looks the left table in this illustration. Straight forward, two columns, two rows.
___________________ ___________________
| | | | | |
| 1,1 | 1,2 | Split | 1,1 | 1,2 |
| | | | | |
|_________|_________| -----> |_________|_________|
| | | -----> | | ?,? |
| 2,1 | 2,2 | | 2,1 |_________|
| | | | | ?,? |
|_________|_________| |_________|_________|
I have access to the shape holding the table via the following variable
dim myShape As PowerPoint.Shape
I can access the lower right cell using (remember that VBA cells are 1-based, not zero-based)
myShape.Table.Cell(2,2)
I can split any cell. Let's split the lower right cell into 2 rows:
myShape.Table.Cell(2,2).Split 2,1
my table now looks like the right one of the two tables at the top.
How would I access any of the two cells in the lower right corner, indicated by ?,??
I have tried
myShape.Table.Cell(2,2).Shape.Table.Cell(1,1)
for example, to access the upper of these two cells. I have also inspected the respective vba-objects in the vba debugger and did some google research. All I was able to find was how to split cells, not how to access any cells after splitting. How can I do this?
Once you split a cell, PowerPoint thinks there are more rows (or columns, if you split that way). The first statement would access the top cell of the split, the second statement the lower one:
ActivePresentation.Slides(1).Shapes(1).Table.Cell(Row:=2, Column:=2).Select
ActivePresentation.Slides(1).Shapes(1).Table.Cell(Row:=3, Column:=2).Select

Using the database index of choices in vb.net comboboxes

I have a question concerning indexing of choices in vb.net comboboxes.
Here is the scenario:
I have a database-table which is basically of the following structure:
| ID | Product | Property | .....
---------------------------------------
| 0 | Fork | Property A |
| 1 | Spoon | Property B |
| 2 | Knife | Proberty A |
| 3 | Chair | Property C |
| 4 | Candle | Property B |
| 5 | Plate | Property C |
and so on. I use the column "product" to fill a combobox in a vb.net application. Depending on some other choices, the user makes in advance, only products which have a certain property shall be shown in the combobox. I realized that wich my sql-query and then i assign "Product" to the combobox. So far this works (i hided all the sqlite-stuff here):
CB.DataSource = sqlite.SelectData("Select ID, Product from table where Property = "Property A" order by ID")
CB.ValueMember = "Product"
My Problem is now: How to store the selected value. I want to store the ID of the selected product in another table together with some other tings.
If i read the ID of the selected object using
id = CB.SelectedIndex
i get of course just the position in the combobox of that object, not the real database id. These numbers are the same when the property-filter is off but of course different, when it is on. Is there any simple straight forward way to read the corresponding database id out of the combobox or do i have to query for it before storing the value (that would be nasty altough possible as "Product" has the "unique" flag.)
Thank you very much in advance.
Luke

How to make a box with title and controls?

Using Twitter Bootstrap 3 how can I create a box (DIV) that has a title, and below the title a row for icons or text, and below that an area for text?
For example:
--------------
| My Title |
|--------------|
| Print | Edit |
|--------------|
| This is the |
| body of my |
| DIV box. |
--------------
Thanks!
This can be done several ways. Here are a few options:
First, is a modal. That doesn't seen to be your goal necessarily though:
Modals: http://getbootstrap.com/javascript/#modals
Next is a list group, which seems closer:
List Groups: http://getbootstrap.com/components/#list-group
The closest one to what it seems like you want is a panel:
Panels: http://getbootstrap.com/components/#panels

how to show many image from URL in UIscrollView

I want create one page that has 3 horizontal (right to left) Scroll in top & middle & down page.
in each scrollview there are many image like this :
----------------------------------------
| ------- -------- -------- |
| | | | | | | | Outside the box is scroller!!!
| | | | | | | |
| ------- -------- -------- |
----------------------------------------
in any page of scroll exist 3 image .
I want when change page of scroll images that exist this page changing!!! (like Scroll in IMDB application)
I can create Scroll and I can read many images from URL but I can not connect these!!! :(
please tell me about.
Check iCarousel brilliant lib for doing stuff like that. It includes a lot of examples and compatible with iOS5.
This might work for you:
A. Create a UIView to hold 3 UImageViews to contain the 3 images.
B. Add the UIView as the contentView of the UISrollView.
C. Use a combination of UIPageControl and UIScrollView.

Programmatically add textview and label to nstableView using Cocoa

I have a NSTableView with multiple rows and just 1 column.
I want to display table in following format:
----------------------------
| Label - 1 |
| |
| textxtview contents-1 |
| height 20 |
----------------------------
| Label - 1 |
| |
| textxtview contents-1 |
| height 40 |
----------------------------
The height of text view should be fixed and its scrollable
Label & text view text color should be different.
How do I programmatically add labels and textview and set the frames?
You maybe should take a look at NSCollectionView. That's easier to use as you can design the cell view in Interface Builder.