<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tt/onlinemanual/100021" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">To run a query</Title>
		<Keyword ContextSensitive="No"><Level1>Queries</Level1>
			<Level2>running</Level2>
		</Keyword>
	</Header>
	<GeneralSection><List><ListItem>Select a record in the <Link href="/baanerp/tt/adv/ttadv3580m000" role="session">Query Data (ttadv3580m000)</Link> session, and choose Run Query on the <GUIRef href="" role="menu">Specific</GUIRef> menu to run the <GUIRef href="/baanerp/tt/adv/ttadv3280m000" role="session">Execute Query (ttadv3280m000)</GUIRef> session.</ListItem>
			<ListItem>Click Execute to run the query. The query output depends on the output type, which you can define in the <Link href="/baanerp/tt/adv/ttadv3180s000" role="session">Query Data (ttadv3180s000)</Link> session:</ListItem>
		</List>
		<List><ListItem><GUIRef href="/baanerp/tt/domains/adv.qotp#list" role="option">Report list</GUIRef> Before <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> produces a <Link href="/baanerp/tt/glossary/glossary#report.tt" role="glossary">report</Link>, you must first enter a device in the <Link href="/baanerp/tt/stp/ttstpsplopen" role="session">Select Device (ttstpsplopen )</Link> session.</ListItem>
			<ListItem><GUIRef href="/baanerp/tt/domains/adv.qotp#label" role="option">Report label</GUIRef> <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> prints the output on a label. You can print labels side by side. In that case, you can specify the width (in columns) of the label in the <GUIRef href="/baanerp/tt/adv/ttadv3180s000#ttadv380.colu" role="manual">Columns label</GUIRef> field, and the number of lines on the label in the <GUIRef href="/baanerp/tt/adv/ttadv3180s000#ttadv380.rows" role="manual">Rows label</GUIRef> field. Specify the number of labels to be printed side by side in the <GUIRef href="/baanerp/tt/adv/ttadv3180s000#ttadv380.nrlb" role="manual">Labels horizontal</GUIRef> field.</ListItem>
			<ListItem><GUIRef href="/baanerp/tt/domains/adv.qotp#chart" role="option">Chart</GUIRef> <GUIRef href="/baanerp/tt" role="package">Tools</GUIRef> automatically starts the Chart Manager session. The query output is shown in this session.</ListItem>
		</List>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<Paragraph class="Default">Before you run a query, you must choose Generate Query Report on the <GUIRef href="" role="menu">Specific</GUIRef> menu in the <GUIRef href="/baanerp/tt/adv/ttadv3580m000" role="session">Query Data (ttadv3580m000)</GUIRef> session.</Paragraph>
		</Note>
	</GeneralSection>
</ManualTopic>
